pub enum Error {
Show 22 variants
InvalidNetworkId,
InvalidV,
InvalidR,
InvalidS,
InvalidSignatureValues,
ZeroPrivKey,
InvalidPrivKeyLength {
got: usize,
expected: usize,
},
DecodePrivKey(Error),
DecodeRecoveryId(Error),
ParseMessage(Error),
ParseRecoverableSignature(Error),
RecoverSignature(Error),
InvalidAddressLength {
got: usize,
expected: usize,
},
InvalidUtf8(Utf8Error),
InvalidHex(ParseIntError),
InvalidEip55,
InvalidCallError(String),
InvalidSignatureLength,
SerializeRlp,
DeserializeRlp,
NoSignature,
UnknownTxType(Uint256),
}
Expand description
Custom error implementation that describes possible error states.
This is shared by a whole crate.
Variants§
InvalidNetworkId
InvalidV
InvalidR
InvalidS
InvalidSignatureValues
ZeroPrivKey
InvalidPrivKeyLength
DecodePrivKey(Error)
DecodeRecoveryId(Error)
ParseMessage(Error)
ParseRecoverableSignature(Error)
RecoverSignature(Error)
InvalidAddressLength
InvalidUtf8(Utf8Error)
InvalidHex(ParseIntError)
InvalidEip55
InvalidCallError(String)
InvalidSignatureLength
SerializeRlp
DeserializeRlp
NoSignature
UnknownTxType(Uint256)
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<ParseIntError> for Error
impl From<ParseIntError> for Error
source§fn from(e: ParseIntError) -> Self
fn from(e: ParseIntError) -> Self
Converts to this type from the input type.
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