Trait ErrorExt
pub trait ErrorExt {
// Required methods
fn with_context(
self,
component: ComponentType,
operation: impl Into<String>,
) -> ContextualError;
fn with_full_context(
self,
severity: ErrorSeverity,
component: ComponentType,
operation: impl Into<String>,
context: Option<String>,
) -> ContextualError;
}Expand description
Error conversion utilities
Required Methods§
fn with_context(
self,
component: ComponentType,
operation: impl Into<String>,
) -> ContextualError
fn with_context( self, component: ComponentType, operation: impl Into<String>, ) -> ContextualError
Convert to contextual error with basic context
fn with_full_context(
self,
severity: ErrorSeverity,
component: ComponentType,
operation: impl Into<String>,
context: Option<String>,
) -> ContextualError
fn with_full_context( self, severity: ErrorSeverity, component: ComponentType, operation: impl Into<String>, context: Option<String>, ) -> ContextualError
Convert to contextual error with full context
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.