Previous topic

RPC Decorators

Next topic

Models

This Page

Common Exceptions

The spyne.error module contains various common exceptions that the user code can throw.

exception spyne.error.ArgumentError(faultstring='')[source]

Bases: spyne.model.fault.Fault

Raised when there is a general problem with input data.

exception spyne.error.InternalError(error)[source]

Bases: spyne.model.fault.Fault

Raised to communicate server-side errors.

exception spyne.error.InvalidCredentialsError(fault_string='You do not have permission to access this resource', fault_object=None)[source]

Bases: spyne.model.fault.Fault

Raised when requested resource is forbidden.

exception spyne.error.InvalidInputError(faultstring='', data='')[source]

Bases: spyne.model.fault.Fault

Raised when there is a general problem with input data.

spyne.error.InvalidRequestError

alias of InvalidInputError

exception spyne.error.RequestNotAllowed(faultstring='')[source]

Bases: spyne.model.fault.Fault

Raised when request is incomplete.

exception spyne.error.RequestTooLongError(faultstring='Request too long')[source]

Bases: spyne.model.fault.Fault

Raised when request is too long.

exception spyne.error.ResourceAlreadyExistsError(fault_object, fault_string='Resource %r already exists')[source]

Bases: spyne.model.fault.Fault

Raised when requested resource already exists on server side.

exception spyne.error.ResourceNotFoundError(fault_object, fault_string='Requested resource %r not found')[source]

Bases: spyne.model.fault.Fault

Raised when requested resource is not found.

exception spyne.error.ValidationError(obj, custom_msg='The value %r could not be validated.')[source]

Bases: spyne.model.fault.Fault

Raised when the input stream does not adhere to type constraints.