pub enum Error {
Show 15 variants
Keystore(KeystoreError),
WalletUnlock(Error),
Web3(Error),
InvalidChannelId {
expected: ChannelId,
actual: ChannelId,
},
ChannelInactive(ChannelId),
SignMessage(EwtSigningError),
VerifyMessage(EwtVerifyError),
ContractInitialization(Error),
ContractQuerying(Error),
VerifyAddress(VerifyError),
ChainNotWhitelisted(ChainId),
InvalidDepositAsset(AddressError),
BigNumParsing(ParseBigIntError),
AuthenticationTokenNotIntendedForUs {
payload: Payload,
whoami: ValidatorId,
},
InsufficientAuthorizationPrivilege,
}
Variants
Keystore(KeystoreError)
WalletUnlock(Error)
Web3(Error)
InvalidChannelId
When the ChannelId that we get from hashing the EthereumChannel with the contract address does not align with the provided Channel
ChannelInactive(ChannelId)
SignMessage(EwtSigningError)
Signing of the message failed
VerifyMessage(EwtVerifyError)
ContractInitialization(Error)
ContractQuerying(Error)
VerifyAddress(VerifyError)
Error occurred during verification of Signature and/or StateRoot and/or Address
ChainNotWhitelisted(ChainId)
InvalidDepositAsset(AddressError)
BigNumParsing(ParseBigIntError)
AuthenticationTokenNotIntendedForUs
InsufficientAuthorizationPrivilege
Trait Implementations
sourceimpl Error for Error
impl Error for Error
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<Error> for AdapterError
impl From<Error> for AdapterError
sourceimpl From<ParseBigIntError> for Error
impl From<ParseBigIntError> for Error
sourcefn from(source: ParseBigIntError) -> Self
fn from(source: ParseBigIntError) -> Self
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more