pub trait CanRaiseError<SourceError>: HasErrorType {
// Required method
fn raise_error(error: SourceError) -> Self::Error;
}Expand description
The CanRaiseError trait is used to raise any concrete error type into
an abstract error provided by HasErrorType.
Required Methods§
fn raise_error(error: SourceError) -> Self::Error
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.
Implementors§
impl<Context, SourceError> CanRaiseError<SourceError> for Contextwhere
Context: HasErrorType + HasCgpProvider,
Context::CgpProvider: ErrorRaiser<Context, SourceError>,
The CanRaiseError trait is used to raise any concrete error type into
an abstract error provided by HasErrorType.