Enum ethers_core::abi::Error
source · pub enum Error {
InvalidName(String),
InvalidData,
SerdeJson(Error),
ParseInt(ParseIntError),
Hex(FromHexError),
Other(Cow<'static, str>),
}
Expand description
Ethabi errors
Variants§
InvalidName(String)
Invalid entity such as a bad function name.
InvalidData
Invalid data.
SerdeJson(Error)
Available on crate feature
full-serde
only.Serialization error.
ParseInt(ParseIntError)
Available on crate feature
serde
only.Integer parsing error.
Hex(FromHexError)
Available on crate feature
serde
only.Hex string parsing error.
Other(Cow<'static, str>)
Other errors.
Trait Implementations§
source§impl Error for Error
impl Error for Error
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 From<Error> for ParseError
impl From<Error> for ParseError
source§impl From<FromDecStrErr> for Error
Available on crate feature serde
only.
impl From<FromDecStrErr> for Error
Available on crate feature
serde
only.source§fn from(err: FromDecStrErr) -> Error
fn from(err: FromDecStrErr) -> Error
Converts to this type from the input type.
source§impl From<FromHexError> for Error
impl From<FromHexError> for Error
source§fn from(source: FromHexError) -> Error
fn from(source: FromHexError) -> Error
Converts to this type from the input type.
source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
source§fn from(source: ParseIntError) -> Error
fn from(source: ParseIntError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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