Expand description
Error types for codlet-core.
This is the internal error layer (RFC-012/021): structured, useful for
developers and operators, and safe to log because no variant carries a
plaintext secret. The public, enumeration-resistant error layer
(PublicAuthFailure) is introduced with the redemption flow (RFC-012) once
the store traits exist.
Structs§
- Random
Error - Randomness could not be obtained. Generation fails closed on this error; codlet never substitutes a deterministic value (INV-3, SR-29-adjacent).
Enums§
- Code
Input Error - Rejection of user-supplied code input during validation (RFC-003 FR-2).
- KeyError
- A key provider could not supply usable key material.
- Policy
Error - A
crate::code::CodePolicywas constructed with an impossible or unsafe shape (RFC-003 §11.1). - Public
Form Error - Public-safe form-token / CSRF failure (RFC-012, RFC-021).
- Public
Redemption Error - Public-safe redemption failure (RFC-012 §4, RFC-021).
- Public
Session Error - Public-safe session failure (RFC-012, RFC-021).
- Redemption
Fail Reason - Internal reason a code redemption failed. Rich enough for logs and metrics; never shown to the user (INV-8, RFC-012 §10.1).