Trait IntoError

Source
pub trait IntoError<E>
where E: Error + ErrorCompat,
{ type Source; // Required method 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§

Source

type Source

The underlying error

Required Methods§

Source

fn into_error(self, source: Self::Source) -> E

Combine the information to produce the error

Implementors§

impl<__T0> IntoError<Error> for InvalidEndianSnafu<__T0>
where Error: Error + ErrorCompat, __T0: Into<u8>,

impl<__T0> IntoError<Error> for MessageSnafu<__T0>
where Error: Error + ErrorCompat, __T0: Into<String>,

impl<__T0> IntoError<Error> for MissingClassInClassnamesSectionSnafu<__T0>
where Error: Error + ErrorCompat, __T0: Into<&'static str>,

impl<__T0> IntoError<Error> for UnsupportedPtrSizeSnafu<__T0>
where Error: Error + ErrorCompat, __T0: Into<u8>,

impl<__T0, __T1> IntoError<Error> for OverflowSubtractAbsSnafu<__T0, __T1>
where Error: Error + ErrorCompat, __T0: Into<u32>, __T1: Into<u32>,

impl<__T0> IntoError<Error> for DeSnafu<__T0>
where Error: Error + ErrorCompat, __T0: Into<PathBuf>,

impl<__T0> IntoError<Error> for FailedReadFileSnafu<__T0>
where Error: Error + ErrorCompat, __T0: Into<PathBuf>,

impl<__T0> IntoError<Error> for KeyParseSnafu<__T0>
where Error: Error + ErrorCompat, __T0: Into<String>,

impl<__T0> IntoError<Error> for MissingExtensionSnafu<__T0>
where Error: Error + ErrorCompat, __T0: Into<PathBuf>,

impl<__T0> IntoError<Error> for SerSnafu<__T0>
where Error: Error + ErrorCompat, __T0: Into<PathBuf>,

impl<__T0, __T1> IntoError<Error> for FailedReproduceFileSnafu<__T0, __T1>
where Error: Error + ErrorCompat, __T0: Into<PathBuf>, __T1: Into<String>,

impl<__T0, __T1, __T2> IntoError<Error> for FailedConvertFilesSnafu<__T0, __T1, __T2>
where Error: Error + ErrorCompat, __T0: Into<PathBuf>, __T1: Into<usize>, __T2: Into<Vec<PathBuf>>,

impl<__T0, __T1, __T2> IntoError<Error> for FailedReproduceFilesSnafu<__T0, __T1, __T2>
where Error: Error + ErrorCompat, __T0: Into<PathBuf>, __T1: Into<usize>, __T2: Into<Vec<PathBuf>>,