Skip to main content

Module error

Module error 

Source
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§

RandomError
Randomness could not be obtained. Generation fails closed on this error; codlet never substitutes a deterministic value (INV-3, SR-29-adjacent).

Enums§

CodeInputError
Rejection of user-supplied code input during validation (RFC-003 FR-2).
KeyError
A key provider could not supply usable key material.
PolicyError
A crate::code::CodePolicy was constructed with an impossible or unsafe shape (RFC-003 §11.1).
PublicFormError
Public-safe form-token / CSRF failure (RFC-012, RFC-021).
PublicRedemptionError
Public-safe redemption failure (RFC-012 §4, RFC-021).
PublicSessionError
Public-safe session failure (RFC-012, RFC-021).
RedemptionFailReason
Internal reason a code redemption failed. Rich enough for logs and metrics; never shown to the user (INV-8, RFC-012 §10.1).