foundry_common::traits

Trait ErrorExt

Source
pub trait ErrorExt: Error {
    // Required method
    fn abi_encode_revert(&self) -> Bytes;
}
Expand description

An extension trait for std::error::Error for ABI encoding.

Required Methods§

Source

fn abi_encode_revert(&self) -> Bytes

ABI-encodes the error using Revert(string).

Implementors§

Source§

impl<T: Error> ErrorExt for T