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.RequestNotAllowed(faultstring='')[source]

Bases: spyne.model.fault.Fault

Raised when request is incomplete.

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

Bases: spyne.model.fault.Fault

Raised when request is too long.

exception spyne.error.ResourceNotFoundError(faultstring='Requested resource not found')[source]

Bases: spyne.model.fault.Fault

Raised when requested resource is not found.

exception spyne.error.ValidationError(obj)[source]

Bases: spyne.model.fault.Fault

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