arthurai.common.exceptions.arthur_excepted#
- arthurai.common.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