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.DANException

Wrapper for DANE exception.

exception DANE.errors.DocumentExistsError

Raised when document does (not) exists.

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.

exception DANE.errors.ResultExistsError

Raised when result does (not) exists.

exception DANE.errors.TaskAssignedError

Raised when task is already/not yet assigned.

exception DANE.errors.TaskExistsError

Raised when task does (not) exists.

exception DANE.errors.UnregisteredError

Raised when DANE object does not have an _id.