Skip to main content

Module error

Module error 

Expand description

CratestackError — the framework’s error type, its 4xx/5xx HTTP mapping, and the public response envelope clients see on failure.

4xx variants carry caller-visible messages; 5xx variants keep the operator detail off the wire and return a canned public message while preserving the original string for tracing / detail().

Structs§

AuthRefusal
A refusal an AuthProvider returns, as CratestackError::AuthRefused through AuthRefusal::into_error. See the module documentation.
CratestackErrorResponse
DbErrorInfo
Structured information extracted from a driver-level database error.
TransactionAbort
Payload of CratestackError::TransactionAborted.

Enums§

AbortOwnership
Where a CratestackError::TransactionAborted stands relative to the procedure dispatch that answers the request. Decides CratestackError::is_idempotency_replayable and what the response says (CratestackError::disowned_transaction_abort).
AuthRefusalKind
Whether the caller is unknown (401) or known and refused (403).
CratestackError

Constants§

RESERVED_ENVELOPE_MEMBERS
The envelope members an AuthRefusal can never set as an extra member: they belong to the framework.

Functions§

parse_cuid