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)
eip712
only.Unknown type referenced from another type.
CircularDependency(String)
eip712
only.Detected circular dep during typegraph resolution.
InvalidPropertyDefinition(String)
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
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Error> for Error
impl From<Error> for Error
Source§fn from(e: SolTypesError) -> Self
fn from(e: SolTypesError) -> Self
Source§impl From<Error> for Error
impl From<Error> for Error
Source§fn from(e: TypeParserError) -> Self
fn from(e: TypeParserError) -> Self
Source§impl From<FromHexError> for Error
impl From<FromHexError> for Error
Source§fn from(e: FromHexError) -> Self
fn from(e: FromHexError) -> Self
Source§impl From<TryReserveError> for Error
impl From<TryReserveError> for Error
Source§fn from(value: TryReserveError) -> Self
fn from(value: TryReserveError) -> Self
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 72 bytes
Size for each variant:
MissingType
: 31 bytesCircularDependency
: 31 bytesInvalidPropertyDefinition
: 31 bytesTypeMismatch
: 55 bytesEncodeLengthMismatch
: 23 bytesTopicLengthMismatch
: 23 bytesSelectorMismatch
: 8 bytesEventSignatureMismatch
: 64 bytesHex
: 23 bytesTypeParser
: 15 bytesSolTypes
: 55 bytes