Exceptions

exception ClientException(msg=None, response=None, exception=None)

Bases: Exception

Base exception for all errors encountered communicating with Spell.

msg

detailed message explaining the exception

Type

str

response

the underlying response that generated the exception

Type

requests.Response

exception

the underlying exception if the exception wraps another exception

Type

Exception

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.

exception UnauthorizedClient

Bases: Exception

An exception indicating the client is not authorized to make requests to the Spell server.

exception UnauthorizedRequest(msg=None, response=None, exception=None)

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.