grab.errors
Custom exception which Grab instance could generate.
Exceptions
- GrabError
- GrabNetworkError
GrabTimeoutError
GrabConnectionError
GrabCouldNotResolveHostError
GrabAuthError
GrabMisuseError
GrabTooManyRedirectsError
GrabInvalidUrl
GrabInternalError
GrabFeatureIsDeprecated
ResponseNotValid
DataNotFound == IndexError
Warning
GrabDeprecationWarning
Module Contents
Functions
|
Attributes
- exception grab.errors.GrabError[source]
Bases:
ExceptionAll custom Grab exception should be children of that class.
- exception grab.errors.OriginalExceptionGrabError(*args: Any, **kwargs: Any)[source]
Bases:
GrabErrorSub-class which constructor accepts original exception as second argument.
- exception grab.errors.GrabNetworkError(*args: Any, **kwargs: Any)[source]
Bases:
OriginalExceptionGrabErrorRaises in case of network error.
- exception grab.errors.GrabTimeoutError(*args: Any, **kwargs: Any)[source]
Bases:
GrabNetworkErrorRaises when configured time is outed for the request.
- exception grab.errors.GrabConnectionError(*args: Any, **kwargs: Any)[source]
Bases:
GrabNetworkErrorRaised when it is not possible to establish network connection.
- exception grab.errors.GrabCouldNotResolveHostError(*args: Any, **kwargs: Any)[source]
Bases:
GrabNetworkErrorRaised when couldn’t resolve host. The given remote host was not resolved.
- exception grab.errors.GrabAuthError[source]
Bases:
GrabErrorRaised when remote server denies authentication credentials.
- exception grab.errors.GrabMisuseError[source]
Bases:
GrabErrorIndicates incorrect usage of grab API.
- exception grab.errors.GrabTooManyRedirectsError[source]
Bases:
GrabErrorRaised when max. allowed number of redirects is reaced.
- exception grab.errors.GrabInvalidUrl[source]
Bases:
GrabErrorRaised when error occurred while normalizing URL e.g. IDN processing.
- exception grab.errors.GrabInvalidResponse(*args: Any, **kwargs: Any)[source]
Bases:
OriginalExceptionGrabErrorRaised when network response’s data could not be processed.
- exception grab.errors.GrabInternalError(*args: Any, **kwargs: Any)[source]
Bases:
OriginalExceptionGrabErrorSub-class which constructor accepts original exception as second argument.
- exception grab.errors.GrabFeatureIsDeprecated[source]
Bases:
GrabErrorRaised when user tries to use feature that is deprecated and has been dropped.