Trait BaseError

Source
pub trait BaseError: Debug + Display {
    // Provided methods
    fn source(&self) -> Option<&(dyn BaseError + 'static)> { ... }
    fn type_id(&self, _: Internal) -> TypeId
       where Self: 'static { ... }
    fn backtrace(&self) -> Option<()> { ... }
}

Provided Methods§

Source

fn source(&self) -> Option<&(dyn BaseError + 'static)>

The lower-level source of error, if any.

TODO: provide examples.

Source

fn type_id(&self, _: Internal) -> TypeId
where Self: 'static,

Gets the TypeId of self.

Source

fn backtrace(&self) -> Option<()>

Returns a stack backtrace.

TODO: provide examples.

Implementors§