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>
Available on crate feature providers
only.
impl<M: Middleware> From<AbiError> for ContractError<M>
Available on crate feature
providers
only.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.
Auto Trait Implementations§
impl !RefUnwindSafe for AbiError
impl Send for AbiError
impl Sync for AbiError
impl Unpin for AbiError
impl !UnwindSafe for AbiError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more