[][src]Trait avocado::error::ErrorExt

pub trait ErrorExt: Error {
    fn as_std_error(&self) -> &dyn Error;

    fn reason(&self) -> Option<&dyn ErrorExt> { ... }
fn backtrace(&self) -> Option<&Backtrace> { ... } }

Slightly augmented trait for backtrace-able errors.

Required Methods

Until subtrait coercions are implemented, this helper method should return the receiver as an &std::error::Error trait object.

Provided Methods

Similar to std::error::Error::cause(), but with richer type info.

Returns the deepest possible backtrace, if any.

Implementations on Foreign Types

impl ErrorExt for EncoderError
[src]

impl ErrorExt for DecoderError
[src]

impl ErrorExt for ValueAccessError
[src]

impl ErrorExt for Error
[src]

impl ErrorExt for WriteException
[src]

impl ErrorExt for BulkWriteException
[src]

Implementors

impl ErrorExt for avocado::error::Error
[src]