deseasion.backend.exceptions module
- exception deseasion.backend.exceptions.CapabilitiesXMLParsingError
Bases:
Exception
Used to indicate a parsing error on a XML GetCapabilities response (WMS/WFS)
- exception deseasion.backend.exceptions.ExternalRequestError(url: str, msg: str = None, request_type: str = None)
Bases:
Exception
Used to indicate an external request to third party server failed.
- Parameters:
url – request tried
msg – error message
request_type – type of request tried, defaults ‘External’
- request_type = 'External'
- exception deseasion.backend.exceptions.GeometryTypeError
Bases:
TypeError
Used to indicate the a geometry does not have the correct type
- exception deseasion.backend.exceptions.InferenceError
Bases:
Exception
Used to indicate an error in the inference of the MR-Sort model.
- exception deseasion.backend.exceptions.InvalidAuthenticationHeader
Bases:
Exception
Used to indicate that the authentication header is not valid
- exception deseasion.backend.exceptions.InvalidValue(message)
Bases:
RequestError
Used to indicate an incorrect value for a field
- status_code = 400
- exception deseasion.backend.exceptions.PermissionError(message='Permission denied')
Bases:
RequestError
- status_code = 403
- exception deseasion.backend.exceptions.ProcessingError
Bases:
Exception
Used to indicate the error in the processing of a criterion
- exception deseasion.backend.exceptions.RequestError(message, status_code=None, payload=None)
Bases:
Exception
Used generate error messages for the http responses
- status_code = 400
- to_dict()
- exception deseasion.backend.exceptions.UploadError
Bases:
Exception
Used to indicate a problem on uploaded files
- exception deseasion.backend.exceptions.UserTokenError
Bases:
Exception
Used to indicate a user could not be associated with a json web token