pub struct MultiError {
pub errors: Vec<AnyError>,
pub pipeline: &'static str,
}
Expand description
An error caused by multiple other errors.
Carries all the errors that caused it to fail (publicly accessible). Multiple are possible.
The cause
is delegated to the first error, if any is present.
All the errors that happened.
The pipeline this error comes from.
Creates a multi-error.
Depending on if one error is passed or multiple, the error is either propagated through
(without introducing another layer of indirection) or all the errors are wrapped into a
MultiError
.
If the errs
passed is empty (eg. then there are no errors, so it logically makes no sense
to call it an error).
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
The lower-level source of this error, if any. Read more
🔬 This is a nightly-only experimental API. (backtrace
)
Returns a stack backtrace, if available, of where this error occurred. Read more
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Wraps the error into another layer of context. Read more
Iterates over all the layers of the error. Read more
Looks for an outermost error of the given type. Read more
impl<T, U> Into<U> for T where
U: From<T>,
Turns self into the result.
Converts the given value to a String
. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.