Skip to main content

Module error

Module error 

Source
Expand description

Error types and result aliases.

Enums§

GlovesError
Top-level application errors.
ValidationError
Validation failures for identifiers.

Constants§

ERROR_CODE_ALREADY_EXISTS
Resource already exists.
ERROR_CODE_EXPIRED
Resource expired.
ERROR_CODE_FORBIDDEN
Operation is blocked by policy.
ERROR_CODE_GPG_DENIED
Human backend GPG/pass denied access.
ERROR_CODE_INTEGRITY
Integrity check failed.
ERROR_CODE_INTERNAL
Internal serialization/crypto/encoding failure.
ERROR_CODE_INVALID_INPUT
Generic invalid-input error.
ERROR_CODE_IO
Filesystem or stream I/O failed.
ERROR_CODE_MISSING_RUNTIME
Missing runtime dependency or binary.
ERROR_CODE_NOT_FOUND
Resource lookup failed.
ERROR_CODE_REQUEST_ID
Request identifier validation error.
ERROR_CODE_SECRET_ID
Secret identifier validation error.
ERROR_CODE_UNAUTHORIZED
Caller identity is not authorized.

Functions§

classify_error_code
Returns the stable error code for a runtime error.
explain_error_code
Returns an explanation block for a known error code.
known_error_codes
Stable list of explainable error codes.
normalize_error_code
Normalizes a user-provided error code for lookups.

Type Aliases§

Result
A typed result used across the crate.