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

pub struct MultiError {
    pub errors: Vec<AnyError>,
    pub pipeline: &'static str,
}

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

impl MultiError[src]

pub fn wrap(errs: Vec<AnyError>, pipeline: &'static str) -> AnyError[src]

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

impl Debug for MultiError[src]

impl Display for MultiError[src]

impl Error for MultiError[src]

Auto Trait Implementations

impl !RefUnwindSafe for MultiError

impl Send for MultiError

impl Sync for MultiError

impl Unpin for MultiError

impl !UnwindSafe for MultiError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<E> ErrorExt for E where
    E: Error
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoResult<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.