pub enum Error {
MissingType(String),
CircularDependency(String),
InvalidPropertyDefinition(String),
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§
MissingType(String)
Available on crate feature
eip712
only.Unknown type referenced from another type.
CircularDependency(String)
Available on crate feature
eip712
only.Detected circular dep during typegraph resolution.
InvalidPropertyDefinition(String)
Available on crate feature
eip712
only.Invalid property definition.
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
Available on crate feature std
only.
impl Error for Error
Available on crate feature
std
only.Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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.
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)