arthurai.common.exceptions#

Functions

arthur_excepted([message])

Decorator to wrap user-facing Arthur functions with exception handling that describes to the user whether the error is their fault or is our fault and should be reported.

Exceptions

ArthurDownloadError

Exception raised when failing to download from an external source e.g.

ArthurError

Base Error for Arthur SDK.

ArthurInternalError

Exception raised when user input is correct but an error occurs.

ArthurUserError

Exception raised due to incorrect user input to the Arthur SDK.

ExpectedParameterNotFoundError

Exception raised when a field or property should be available from Arthur but is unexpectedly missing.

ForbiddenError

Exception raised when a 403 Forbidden response is received from the API.

InternalTypeError

Exception raised when a value is unexpected.

InternalValueError

Exception raised when a value is unexpected.

MethodNotApplicableError

Exception raised when the method called is not valid for the resource.

MissingParameterError

Exception raised when parameters supplied to the Arthur SDK are missing.

PaymentRequiredError

Exception raised when a 402 response is received from the API due to a user trying to access features not available in their plan.

ResponseClientError

Exception raised when a 4XX response is received from the API.

ResponseRedirectError

Exception raised when a 3XX response is unexpectedly received from the API.

ResponseServerError

Exception raised when a 5XX response is received from the API.

UserTypeError

Exception raised when a user supplies an argument of the incorrect type to the Arthur SDK.

UserValueError

Exception raised when a user supplies an invalid value to the Arthur SDK.