pub trait StandardError {
// Required methods
fn standardize(self) -> TrustformersError;
fn standardize_with_operation(self, operation: &str) -> TrustformersError;
fn standardize_with_component(self, component: &str) -> TrustformersError;
fn standardize_with_context(
self,
operation: &str,
component: &str,
) -> TrustformersError;
}Expand description
Standard error interface that all modules should use
Required Methods§
Sourcefn standardize(self) -> TrustformersError
fn standardize(self) -> TrustformersError
Convert any error to a standardized TrustformersError
Sourcefn standardize_with_operation(self, operation: &str) -> TrustformersError
fn standardize_with_operation(self, operation: &str) -> TrustformersError
Convert with operation context
Sourcefn standardize_with_component(self, component: &str) -> TrustformersError
fn standardize_with_component(self, component: &str) -> TrustformersError
Convert with component context
Sourcefn standardize_with_context(
self,
operation: &str,
component: &str,
) -> TrustformersError
fn standardize_with_context( self, operation: &str, component: &str, ) -> TrustformersError
Convert with full context