Trait ethers_contract::EthError
source · pub trait EthError: Tokenizable + AbiDecode + AbiEncode + Send + Sync {
fn error_name() -> Cow<'static, str>;
fn abi_signature() -> Cow<'static, str>;
fn selector() -> Selector { ... }
}
Expand description
A helper trait for types that represents a custom error type
Required Methods§
sourcefn error_name() -> Cow<'static, str>
fn error_name() -> Cow<'static, str>
The name of the error
sourcefn abi_signature() -> Cow<'static, str>
fn abi_signature() -> Cow<'static, str>
Retrieves the ABI signature for the error