DeformException

Bases: Exception

Base Deform.io exception.

Could be used for catching all Deform.io specific exception.

try:
    deform_client.collections.find()
except DeformException as e:
    print 'Deform.io specific exception raised'

HTTPError

Bases: DeformException

Base exception for errors produced at the HTTP layer.

These types of exceptions containes additional parameters:

AuthError

Bases: HTTPError

Errors due to invalid authentication credentials.

ConflictError

Bases: HTTPError

ConnectTimeout

Bases: ConnectionError, Timeout

The request timed out while trying to connect to the remote server. Requests that produced this error are safe to retry.

ConnectionError

Bases: HTTPError

A Connection error occurred.

ForbiddenError

Bases: HTTPError

NotFoundError

Bases: HTTPError

ReadTimeout

Bases: Timeout

The server did not send any data in the allotted amount of time.

Timeout

Bases: HTTPError

The request timed out. Catching this error will catch both ConnectTimeout and ReadTimeout errors.

ValidationError

Bases: HTTPError