Trait concordium_std::ExpectErrReport[][src]

pub trait ExpectErrReport {
    type Unwrap;
    fn expect_err_report(self, msg: &str) -> Self::Unwrap;
}

Analogue of the expect_err methods on Result, but useful in a Wasm setting.

Associated Types

Loading content...

Required methods

fn expect_err_report(self, msg: &str) -> Self::Unwrap[src]

Like the default expect_err on, e.g., Result, but calling fail with the given message, instead of panic.

Loading content...

Implementations on Foreign Types

impl<A: Debug, E> ExpectErrReport for Result<A, E>[src]

type Unwrap = E

Loading content...

Implementors

Loading content...