Skip to main content

AuthsErrorInfo

Trait AuthsErrorInfo 

Source
pub trait AuthsErrorInfo {
    // Required methods
    fn error_code(&self) -> &'static str;
    fn suggestion(&self) -> Option<&'static str>;
}
Expand description

Trait for error metadata providing structured error codes and actionable suggestions.

All user-facing Auths error types implement this trait to provide:

  • A unique error code for programmatic handling (e.g., AUTHS-E3001)
  • An optional human-readable suggestion for how to resolve the error

Args: (no arguments — this is a trait definition)

Usage:

use auths_crypto::AuthsErrorInfo;

impl AuthsErrorInfo for MyError {
    fn error_code(&self) -> &'static str { "AUTHS-E0001" }
    fn suggestion(&self) -> Option<&'static str> { None }
}

Required Methods§

Source

fn error_code(&self) -> &'static str

Returns a unique error code string for this error variant.

Source

fn suggestion(&self) -> Option<&'static str>

Returns an optional actionable suggestion for resolving the error.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl AuthsErrorInfo for AnchorError

Source§

fn error_code(&self) -> &'static str

Source§

fn suggestion(&self) -> Option<&'static str>

Source§

impl AuthsErrorInfo for AttestationError

Source§

fn error_code(&self) -> &'static str

Source§

fn suggestion(&self) -> Option<&'static str>

Source§

impl AuthsErrorInfo for CommitVerificationError

Source§

fn error_code(&self) -> &'static str

Source§

fn suggestion(&self) -> Option<&'static str>

Source§

impl AuthsErrorInfo for CredentialRegistryError

Source§

fn error_code(&self) -> &'static str

Source§

fn suggestion(&self) -> Option<&'static str>

Source§

impl AuthsErrorInfo for CryptoError

Source§

fn error_code(&self) -> &'static str

Source§

fn suggestion(&self) -> Option<&'static str>

Source§

impl AuthsErrorInfo for HookError

Source§

fn error_code(&self) -> &'static str

Source§

fn suggestion(&self) -> Option<&'static str>

Source§

impl AuthsErrorInfo for IdentityError

Source§

fn error_code(&self) -> &'static str

Source§

fn suggestion(&self) -> Option<&'static str>

Source§

impl AuthsErrorInfo for InceptionError

Source§

fn error_code(&self) -> &'static str

Source§

fn suggestion(&self) -> Option<&'static str>

Source§

impl AuthsErrorInfo for IncrementalError

Source§

fn error_code(&self) -> &'static str

Source§

fn suggestion(&self) -> Option<&'static str>

Source§

impl AuthsErrorInfo for KelError

Source§

fn error_code(&self) -> &'static str

Source§

fn suggestion(&self) -> Option<&'static str>

Source§

impl AuthsErrorInfo for KeriDecodeError

Source§

fn error_code(&self) -> &'static str

Source§

fn suggestion(&self) -> Option<&'static str>

Source§

impl AuthsErrorInfo for NetworkError

Source§

fn error_code(&self) -> &'static str

Source§

fn suggestion(&self) -> Option<&'static str>

Source§

impl AuthsErrorInfo for OidcError

Source§

fn error_code(&self) -> &'static str

Source§

fn suggestion(&self) -> Option<&'static str>

Source§

impl AuthsErrorInfo for RegistryError

Source§

fn error_code(&self) -> &'static str

Source§

fn suggestion(&self) -> Option<&'static str>

Source§

impl AuthsErrorInfo for ResolutionError

Source§

fn error_code(&self) -> &'static str

Source§

fn suggestion(&self) -> Option<&'static str>

Source§

impl AuthsErrorInfo for ResolveError

Source§

fn error_code(&self) -> &'static str

Source§

fn suggestion(&self) -> Option<&'static str>

Source§

impl AuthsErrorInfo for RotationError

Source§

fn error_code(&self) -> &'static str

Source§

fn suggestion(&self) -> Option<&'static str>

Source§

impl AuthsErrorInfo for TenantIdError

Source§

fn error_code(&self) -> &'static str

Source§

fn suggestion(&self) -> Option<&'static str>

Source§

impl AuthsErrorInfo for WitnessError

Source§

fn error_code(&self) -> &'static str

Source§

fn suggestion(&self) -> Option<&'static str>

Implementors§

Source§

impl AuthsErrorInfo for auths_sdk::error::AgentError

Source§

impl AuthsErrorInfo for auths_sdk::domains::agents::error::AgentError

Source§

impl AuthsErrorInfo for ApprovalError

Source§

impl AuthsErrorInfo for ArtifactSigningError

Source§

impl AuthsErrorInfo for AuthChallengeError

Source§

impl AuthsErrorInfo for CacheError

Source§

impl AuthsErrorInfo for ConfigStoreError

Source§

impl AuthsErrorInfo for CredentialError

Source§

impl AuthsErrorInfo for auths_crypto::provider::CryptoError

Source§

impl AuthsErrorInfo for DeviceError

Source§

impl AuthsErrorInfo for DeviceExtensionError

Source§

impl AuthsErrorInfo for DidKeyError

Source§

impl AuthsErrorInfo for FreezeError

Source§

impl AuthsErrorInfo for InitError

Source§

impl AuthsErrorInfo for LogError

Source§

impl AuthsErrorInfo for McpAuthError

Source§

impl AuthsErrorInfo for NamespaceVerifyError

Source§

impl AuthsErrorInfo for OrgError

Source§

impl AuthsErrorInfo for PairingError

Source§

impl AuthsErrorInfo for PlatformError

Source§

impl AuthsErrorInfo for RegistrationError

Source§

impl AuthsErrorInfo for auths_sdk::domains::identity::error::RotationError

Source§

impl AuthsErrorInfo for SdkStorageError

Source§

impl AuthsErrorInfo for SetupError

Source§

impl AuthsErrorInfo for SigningError

Source§

impl AuthsErrorInfo for SshAgentError

Source§

impl AuthsErrorInfo for SshKeyError

Source§

impl AuthsErrorInfo for auths_sdk::ports::CoreStorageError

Source§

impl AuthsErrorInfo for auths_sdk::error::IdStorageError

Source§

impl AuthsErrorInfo for auths_sdk::error::IdDriverStorageError

Source§

impl AuthsErrorInfo for auths_sdk::error::CoreTrustError

Source§

impl AuthsErrorInfo for auths_sdk::domains::auth::error::TrustError