Skip to main content

ErrorIdentityProvider

Trait ErrorIdentityProvider 

Source
pub trait ErrorIdentityProvider {
    // Required methods
    fn stable_code(&self) -> &'static str;
    fn error_category(&self) -> ErrorCategory;
}
Expand description

Runtime identity provider for stable error codes and categories.

Implemented automatically by #[derive(OrionError)]. Used by StructError::exposure and the protocol projection layer to determine visibility and exposure decisions.

Required Methods§

Source

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

Source

fn error_category(&self) -> ErrorCategory

Implementors§