pub trait ErrorContextExt {
type Output;
// Required methods
fn with_context(self, context: ErrorContext) -> Self::Output;
fn with_file(self, file_path: PathBuf) -> Self::Output;
fn with_line(self, line: usize) -> Self::Output;
fn with_operation(self, operation: &str) -> Self::Output;
}Expand description
Helper trait for adding context to errors
Required Associated Types§
Required Methods§
Sourcefn with_context(self, context: ErrorContext) -> Self::Output
fn with_context(self, context: ErrorContext) -> Self::Output
Add context to the error
Sourcefn with_operation(self, operation: &str) -> Self::Output
fn with_operation(self, operation: &str) -> Self::Output
Add operation context