Errors and exceptions

exception DANE.errors.APIRegistrationError

Raised when registering the API fails.

exception DANE.errors.ConfigRequiredError

Error to indicate that the base_config.yml is declared abstract, and that it requires a config.yml.

exception DANE.errors.MissingEndpointError

Raised when an action fails due to lack of API.

exception DANE.errors.RefuseJobException

Exception for workers to throw when they want to refuse a job at this point in time.

This will result in a nack (no ack) being sent back to the queue, causing the job to be requeued (at the or close to the head of the queue).

exception DANE.errors.ResourceConnectionError

Raised when a component cant connect to a resource it depends on.

Used for catching resource specific errors, and wrapping them in a soft blanket of custom error handling.