Expand description
Secret-category native errors.
Category-native error type for secret storage and hashing concerns, aligning with the crate’s categorical, domain-driven structure. Use these errors directly in handlers and services.
§Overview
SecretError: category-native error enum for hashing flows- Uses
HashingOperationfor hashing context
§Examples
Hashing failure with algorithm context:
use axum_gate::secrets::SecretError;
use axum_gate::hashing::HashingOperation;
let err = SecretError::hashing_with_algorithm(
HashingOperation::Verify,
"password verification failed",
"argon2id",
);Enums§
- Secret
Error - Secret-category native errors.