Trait ErrorContext

Source
pub trait ErrorContext {
    // Required method
    fn with_context(&self, operation: &str) -> String;
}
Expand description

Trait for generating consistent error messages across the codebase.

Required Methods§

Source

fn with_context(&self, operation: &str) -> String

Generate a standardized error message with context.

Implementors§