Struct spirit::fragment::pipeline::MultiError[][src]

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.

Fields

errors: Vec<AnyError>

All the errors that happened.

pipeline: &'static str

The pipeline this error comes from.

Implementations

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.

Panics

If the errs passed is empty (eg. then there are no errors, so it logically makes no sense to call it an error).

Trait Implementations

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

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

Returns a Display representation of the whole chain of errors. Read more

Performs the conversion.

Performs the conversion.

Turns self into the result.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.