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).