StackError

Trait StackError 

Source
pub trait StackError: Error {
    // Required methods
    fn location(&self) -> &'static Location<'static>;
    fn next<'a>(&'a self) -> Option<ErrorDetail<'a>>;

    // Provided method
    fn iter<'a>(&'a self) -> Iter<'a> 
       where Self: Sized { ... }
}
Expand description

Error types that can report a stack trace-like chain.

Required Methods§

Source

fn location(&self) -> &'static Location<'static>

Returns the source location of this error.

Source

fn next<'a>(&'a self) -> Option<ErrorDetail<'a>>

Returns the next detail in the stack.

Provided Methods§

Source

fn iter<'a>(&'a self) -> Iter<'a>
where Self: Sized,

Creates an iterator over this error’s stack details.

Implementors§

Source§

impl<E> StackError for LocatedError<E>
where E: Error,