Expand description
Error types for secret-related operations.
This module contains the structured error type used when secret creation or
verification fails in webgates-secrets.
SecretError adds caller-safe messaging around hashing failures that
happen at the Secret value-object boundary.
§Examples
Create a secret error with algorithm context:
use webgates_secrets::errors::SecretError;
use webgates_secrets::hashing::errors::HashingOperation;
let err = SecretError::hashing_with_algorithm(
HashingOperation::Verify,
"password verification failed",
"argon2id",
);Enums§
- Secret
Error - Error returned when secret creation or verification fails.