pub trait IntoError<E>where
E: Error + ErrorCompat,{
type Source;
fn into_error(self, source: Self::Source) -> E;
}
Expand description
Combines an underlying error with additional information about the error.
It is expected that most users of SNAFU will not directly interact with this trait.
Required Associated Types
Required Methods
sourcefn into_error(self, source: Self::Source) -> E
fn into_error(self, source: Self::Source) -> E
Combine the information to produce the error