Skip to main content

Module error

Module error 

Source
Expand description

The error contract between providers, the engine and front ends.

Variants are grouped by what the caller should do, not by where the failure happened. Providers map their HTTP/transport failures into these; the engine decides on retry, fallback or giving up from Error::is_retryable and Error::category; the CLI maps ErrorCategory to exit codes.

Error is Clone (sources are behind Arc) so one in-flight request’s result can be shared with every caller that was waiting on it.

Enums§

Error
ErrorCategory
What a caller should do about an error. Stable: the CLI derives exit codes from it.

Type Aliases§

Result
Source
A boxed, shareable underlying cause.