common_error::ext

Trait StackError

Source
pub trait StackError: Error {
    // Required methods
    fn debug_fmt(&self, layer: usize, buf: &mut Vec<String>);
    fn next(&self) -> Option<&dyn StackError>;

    // Provided methods
    fn last(&self) -> &dyn StackError
       where Self: Sized { ... }
    fn transparent(&self) -> bool { ... }
}

Required Methods§

Source

fn debug_fmt(&self, layer: usize, buf: &mut Vec<String>)

Source

fn next(&self) -> Option<&dyn StackError>

Provided Methods§

Source

fn last(&self) -> &dyn StackError
where Self: Sized,

Source

fn transparent(&self) -> bool

Indicates whether this error is “transparent”, that it delegates its “display” and “source” to the underlying error. Could be useful when you are just wrapping some external error, AND can not or would not provide meaningful contextual info. For example, the DataFusionError.

Implementations on Foreign Types§

Source§

impl<T: StackError> StackError for Box<T>

Source§

fn debug_fmt(&self, layer: usize, buf: &mut Vec<String>)

Source§

fn next(&self) -> Option<&dyn StackError>

Source§

impl<T: ?Sized + StackError> StackError for Arc<T>

Source§

fn debug_fmt(&self, layer: usize, buf: &mut Vec<String>)

Source§

fn next(&self) -> Option<&dyn StackError>

Implementors§