Module errors

Module errors 

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

SecretError
Secret-category native errors.