Skip to main content

Module error

Module error 

Source
Expand description

Error types for the agent plugin.

Every failure the plugin can produce carries an ErrorKind. The kind maps to an HTTP status code through ErrorKind::status_code, and to an AutumnError through AgentError::into_autumn_error (a method, not a From impl, because Autumn already provides a blanket From<E: Error> that would conflict). Handlers and jobs translate agent failures into framework responses with one call.

Structs§

AgentError
The plugin’s error type.

Enums§

ErrorKind
Machine-readable category for an AgentError.