Module SICAR.exceptions
Custom Exception Classes Module.
This module provides custom exception classes for specific error conditions.
Classes
UrlNotOkException: Exception raised when a URL is inaccessible or returns an error. StateCodeNotValidException: Exception raised when an invalid state code is encountered. FailedToDownloadCaptchaException: Exception raised when downloading a captcha fails. FailedToDownloadPolygonException: Exception raised when downloading a polygon fails.
Classes
class FailedToDownloadCaptchaException
-
Exception raised when downloading a captcha fails.
Initialize an instance of FailedToDownloadCaptchaException.
Parameters
None
Returns
None
Ancestors
- builtins.Exception
- builtins.BaseException
class FailedToDownloadPolygonException
-
Exception raised when downloading a polygon fails.
Initialize an instance of FailedToDownloadPolygonException.
Parameters
None
Returns
None
Ancestors
- builtins.Exception
- builtins.BaseException
class PolygonNotValidException (polygon: str)
-
Exception raised when an invalid polygon is encountered.
Attributes
polygon
:str
- The invalid polygon.
Initialize an instance of PolygonNotValidException.
Parameters
polygon (str): The invalid polygon.
Returns
None
Ancestors
- builtins.Exception
- builtins.BaseException
class StateCodeNotValidException (state: str)
-
Exception raised when an invalid state code is encountered.
Attributes
state
:str
- The invalid state code.
Initialize an instance of StateCodeNotValidException.
Parameters
state (str): The invalid state code.
Returns
None
Ancestors
- builtins.Exception
- builtins.BaseException
class UrlNotOkException (url: str)
-
Exception raised when a URL is inaccessible or returns an error.
Attributes
url
:str
- The problematic URL.
Initialize an instance of UrlNotOkException.
Parameters
url (str): The problematic URL.
Returns
None
Ancestors
- builtins.Exception
- builtins.BaseException