Skip to main content

ErrorContext

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.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§