Exceptions¶
- exception
ClientException
(msg=None, response=None, exception=None)¶ Bases:
Exception
Base exception for all errors encountered communicating with Spell.
-
response
¶ the underlying response that generated the exception
- Type
requests.Response
-
- exception
ServerError
(msg=None, response=None, exception=None)¶ Bases:
spell.api.exceptions.ClientException
An exception indicating an error occurred while processing the request on the Spell server.
- exception
BadRequest
(msg=None, response=None, exception=None)¶ Bases:
spell.api.exceptions.ClientException
An exception indicating an invalid request was made to the Spell server.
Bases:
Exception
An exception indicating the client is not authorized to make requests to the Spell server.
Bases:
spell.api.exceptions.ClientException
An exception indicating an unauthorized request was made to the Spell server.
- exception
ConflictRequest
(msg=None, response=None, exception=None)¶ Bases:
spell.api.exceptions.ClientException
An exception indicating the requested action is in conflict with an existing Spell resource.
- exception
JsonDecodeError
(msg=None, response=None, exception=None)¶ Bases:
spell.api.exceptions.ClientException
An exception indicating there was an error decoding the JSON payload from the Spell server.
- exception
WaitError
(msg=None, response=None, exception=None)¶ Bases:
spell.api.exceptions.ClientException
An exception indicating there was an error waiting for the requested event on the Spell server.