pub trait ExpectErrReport {
    type Unwrap;

    // Required method
    fn expect_err_report(self, msg: &str) -> Self::Unwrap;
}
Expand description

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

Required Associated Types§

Required Methods§

source

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

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

Implementations on Foreign Types§

source§

impl<A: Debug, E> ExpectErrReport for Result<A, E>

§

type Unwrap = E

source§

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

Implementors§