Source code for taskhawk.exceptions

[docs]class RetryException(Exception): """ Special exception that does not log an exception when it is received. This is a retryable error. """ pass
[docs]class LoggingException(Exception): """ An exception that allows passing additional logging info. `extra` must be a dict that will be passed to `logging.exception` and can be used by a logging adaptor etc. """ def __init__(self, message, extra=None): super().__init__(message) self.extra = extra
[docs]class IgnoreException(Exception): """ Indicates that this task should be ignored. """ pass
[docs]class ValidationError(Exception): """ Message failed JSON schema validation """ pass
[docs]class ConfigurationError(Exception): """ There was some problem with settings """ pass
[docs]class TaskNotFound(Exception): """ No task was found that can handle the given message. Ensure that you call `taskhawk.RegisterTask`. """ pass