Enum alloy_dyn_abi::Error
source · pub enum Error {
TypeMismatch {
expected: String,
actual: String,
},
EncodeLengthMismatch {
expected: usize,
actual: usize,
},
TopicLengthMismatch {
expected: usize,
actual: usize,
},
SelectorMismatch {
expected: Selector,
actual: Selector,
},
EventSignatureMismatch {
expected: B256,
actual: B256,
},
Hex(FromHexError),
TypeParser(Error),
SolTypes(Error),
}
Expand description
Error when parsing EIP-712 encodeType
strings
https://eips.ethereum.org/EIPS/eip-712#definition-of-encodetype
Variants§
TypeMismatch
Type mismatch during encoding or coercion.
EncodeLengthMismatch
Length mismatch during encoding.
TopicLengthMismatch
Length mismatch during event topic decoding.
SelectorMismatch
Selector mismatch during function or error decoding.
EventSignatureMismatch
Invalid event signature.
Hex(FromHexError)
hex
error.
TypeParser(Error)
alloy_sol_type_parser
error.
SolTypes(Error)
alloy_sol_types
error.
Implementations§
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 Error
impl From<Error> for Error
source§fn from(e: SolTypesError) -> Self
fn from(e: SolTypesError) -> Self
Converts to this type from the input type.
source§impl From<Error> for Error
impl From<Error> for Error
source§fn from(e: TypeParserError) -> Self
fn from(e: TypeParserError) -> Self
Converts to this type from the input type.
source§impl From<FromHexError> for Error
impl From<FromHexError> for Error
source§fn from(e: FromHexError) -> Self
fn from(e: FromHexError) -> Self
Converts to this type from the input type.
source§impl From<TryReserveError> for Error
impl From<TryReserveError> for Error
source§fn from(value: TryReserveError) -> Self
fn from(value: TryReserveError) -> Self
Converts to this type from the input type.
source§impl PartialEq for Error
impl PartialEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)