arthur_bench.exceptions#
Submodules#
- exception arthur_bench.exceptions.exceptions.ArthurError#
Bases:
ExceptionBase Error for Arthur SDK. This class should not be used directly, Arthur exceptions should inherit from either ArthurUserError or ArthurInternalError.
- exception arthur_bench.exceptions.exceptions.ArthurInternalError#
Bases:
ArthurErrorException raised when user input is correct but an error occurs. Can be used directly but children are preferred.
- exception arthur_bench.exceptions.exceptions.ArthurUserError#
Bases:
ArthurErrorException raised due to incorrect user input to the Arthur SDK. Can be used directly but children are preferred.
- exception arthur_bench.exceptions.exceptions.ExpectedParameterNotFoundError#
Bases:
ArthurInternalErrorException raised when a field or property should be available from Arthur but is unexpectedly missing.
- exception arthur_bench.exceptions.exceptions.ForbiddenError#
Bases:
ResponseClientErrorException raised when a 403 Forbidden response is received from the API.
- exception arthur_bench.exceptions.exceptions.InternalTypeError#
Bases:
ArthurInternalError,TypeErrorException raised when a value is unexpected.
- exception arthur_bench.exceptions.exceptions.InternalValueError#
Bases:
ArthurInternalError,ValueErrorException raised when a value is unexpected.
- exception arthur_bench.exceptions.exceptions.MethodNotApplicableError#
Bases:
ArthurUserErrorException raised when the method called is not valid for the resource.
- exception arthur_bench.exceptions.exceptions.MissingParameterError#
Bases:
ArthurUserErrorException raised when parameters supplied to the Arthur SDK are missing.
- exception arthur_bench.exceptions.exceptions.NotFoundError#
Bases:
ResponseClientErrorException raised when a 404 Not Found response is received from the API.
- exception arthur_bench.exceptions.exceptions.PaymentRequiredError#
Bases:
ResponseClientErrorException raised when a 402 response is received from the API due to a user trying to access features not available in their plan.
- exception arthur_bench.exceptions.exceptions.ResponseClientError#
Bases:
ArthurUserErrorException raised when a 4XX response is received from the API.
- exception arthur_bench.exceptions.exceptions.ResponseRedirectError#
Bases:
ArthurInternalErrorException raised when a 3XX response is unexpectedly received from the API.
- exception arthur_bench.exceptions.exceptions.ResponseServerError#
Bases:
ArthurInternalErrorException raised when a 5XX response is received from the API.
- exception arthur_bench.exceptions.exceptions.UnauthorizedError#
Bases:
ResponseClientErrorException raised when a 401 Unauthorized response is received from the API.
- exception arthur_bench.exceptions.exceptions.UserTypeError#
Bases:
ArthurUserError,TypeErrorException raised when a user supplies an argument of the incorrect type to the Arthur SDK.
- exception arthur_bench.exceptions.exceptions.UserValueError#
Bases:
ArthurUserError,ValueErrorException raised when a user supplies an invalid value to the Arthur SDK.
- arthur_bench.exceptions.exceptions.arthur_excepted(message=None)#
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. :param message: an optional message to prefix the error with, should describe the
failure e.g. “failed to send
inferences” or “an error occurred while creating the model.” :return: the decorator function