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§
- Auth
Refusal - A refusal an
AuthProviderreturns, asCratestackError::AuthRefusedthroughAuthRefusal::into_error. See the module documentation. - Cratestack
Error Response - DbError
Info - Structured information extracted from a driver-level database error.
- Transaction
Abort - Payload of
CratestackError::TransactionAborted.
Enums§
- Abort
Ownership - Where a
CratestackError::TransactionAbortedstands relative to the procedure dispatch that answers the request. DecidesCratestackError::is_idempotency_replayableand what the response says (CratestackError::disowned_transaction_abort). - Auth
Refusal Kind - Whether the caller is unknown (401) or known and refused (403).
- Cratestack
Error
Constants§
- RESERVED_
ENVELOPE_ MEMBERS - The envelope members an
AuthRefusalcan never set as an extra member: they belong to the framework.