ErrorContextExt

Trait ErrorContextExt 

Source
pub trait ErrorContextExt {
    // Required method
    fn with_context(self, context: ErrorContext) -> ContextualError;
}
Expand description

Extension trait for adding context to errors

Required Methods§

Source

fn with_context(self, context: ErrorContext) -> ContextualError

Add context to an error

Implementors§