pub enum HelperErrors {
Show 30 variants
FromHexError(FromHexError),
ContractError(Error),
PendingTransactionError(PendingTransactionError),
UnableToReadFromPath(Error),
UnableToParseAddress(String),
SystemTime(SystemTimeError),
UnableToCreateIdentity,
UnableToUpdateIdentityPassword,
IncorrectFilename(String),
IdentityFileExists(String),
UnableToReadIdentity,
MissingIdentityDirectory,
UnableToDeleteIdentity,
EnvironmentInfoMismatch,
UnableToSetFoundryRoot,
ErrorInRunningFoundry,
UnableToReadPassword,
UnableToReadPrivateKey(String),
MissingParameter(String),
KeyStoreError(KeyPairError),
SerdeJson(Error),
UnknownNetwork,
RpcError(RpcError),
MulticallError(MulticallError),
MultiSendError,
NotAMinter,
MiddlewareError(String),
ContractNotDeployed(String),
InvalidAddress(String),
ParseError(String),
}
Expand description
Enumerates different errors produced by this crate.
Variants§
FromHexError(FromHexError)
Error of contract error
ContractError(Error)
Error of contract error
PendingTransactionError(PendingTransactionError)
Error propagated by pending transctions
UnableToReadFromPath(Error)
Error propagated by IO operations
UnableToParseAddress(String)
Error in parsing provided comma-separated addresses
SystemTime(SystemTimeError)
System time rrror
UnableToCreateIdentity
Error when identity cannot be created
UnableToUpdateIdentityPassword
IncorrectFilename(String)
Error due to supplying a non-existing file name
IdentityFileExists(String)
Error when identity existed
UnableToReadIdentity
Fail to read identity
MissingIdentityDirectory
Fail to find the identity directory
UnableToDeleteIdentity
Fail to delete an identity
EnvironmentInfoMismatch
Provided environement does not match with that in the ethereum/contracts/contracts-addresses.json
UnableToSetFoundryRoot
Wrong foundry contract root is provided
ErrorInRunningFoundry
Fail to run foundry
UnableToReadPassword
Fail to read password
UnableToReadPrivateKey(String)
Fail to read private key
MissingParameter(String)
Paramters are missing
KeyStoreError(KeyPairError)
Error with the keystore file
SerdeJson(Error)
Serde JSON Error
UnknownNetwork
Cannot find network details from the given network name
RpcError(RpcError)
Error with HTTP Json RPC provider
MulticallError(MulticallError)
Fail to make a multicall
MultiSendError
Fail to make a multisend call
NotAMinter
Txn caller does not have the minter role
MiddlewareError(String)
Error with middleware
ContractNotDeployed(String)
A required smart contract (Safe or module proxy instance) is not deployed
InvalidAddress(String)
ParseError(String)
Trait Implementations§
Source§impl Debug for HelperErrors
impl Debug for HelperErrors
Source§impl Display for HelperErrors
impl Display for HelperErrors
Source§impl Error for HelperErrors
impl Error for HelperErrors
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 HelperErrors
impl From<Error> for HelperErrors
Source§impl From<Error> for HelperErrors
impl From<Error> for HelperErrors
Source§impl From<Error> for HelperErrors
impl From<Error> for HelperErrors
Source§impl From<FromHexError> for HelperErrors
impl From<FromHexError> for HelperErrors
Source§impl From<KeyPairError> for HelperErrors
impl From<KeyPairError> for HelperErrors
Source§fn from(source: KeyPairError) -> Self
fn from(source: KeyPairError) -> Self
Source§impl From<MulticallError> for HelperErrors
impl From<MulticallError> for HelperErrors
Source§impl From<PendingTransactionError> for HelperErrors
impl From<PendingTransactionError> for HelperErrors
Source§impl From<RpcError> for HelperErrors
impl From<RpcError> for HelperErrors
Source§impl From<SystemTimeError> for HelperErrors
impl From<SystemTimeError> for HelperErrors
Source§fn from(source: SystemTimeError) -> Self
fn from(source: SystemTimeError) -> Self
Auto Trait Implementations§
impl !Freeze for HelperErrors
impl !RefUnwindSafe for HelperErrors
impl Send for HelperErrors
impl Sync for HelperErrors
impl Unpin for HelperErrors
impl !UnwindSafe for HelperErrors
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.