Enum ethers_contract::AbiError
source · pub enum AbiError {
DecodingError(Error),
DetokenizationError(InvalidOutputType),
WrongSelector,
ParseBytesError(ParseBytesError),
}
Expand description
ABI codec related errors
Variants§
DecodingError(Error)
Thrown when the ABI decoding fails
DetokenizationError(InvalidOutputType)
Thrown when detokenizing an argument
WrongSelector
ParseBytesError(ParseBytesError)
Trait Implementations§
source§impl Error for AbiError
impl Error for AbiError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<M: Middleware> From<AbiError> for ContractError<M>
impl<M: Middleware> From<AbiError> for ContractError<M>
source§impl From<InvalidOutputType> for AbiError
impl From<InvalidOutputType> for AbiError
source§fn from(source: InvalidOutputType) -> AbiError
fn from(source: InvalidOutputType) -> AbiError
Converts to this type from the input type.
source§impl From<ParseBytesError> for AbiError
impl From<ParseBytesError> for AbiError
source§fn from(source: ParseBytesError) -> AbiError
fn from(source: ParseBytesError) -> AbiError
Converts to this type from the input type.