Enum ethers::contract::ContractError [−][src]
pub enum ContractError<M> where
M: Middleware, {
DecodingError(Error),
AbiError(AbiError),
DetokenizationError(InvalidOutputType),
MiddlewareError(<M as Middleware>::Error),
ProviderError(ProviderError),
ConstructorError,
ContractNotDeployed,
}
Expand description
An Error which is thrown when interacting with a smart contract
Variants
DecodingError(Error)
Tuple Fields
0: Error
Thrown when the ABI decoding fails
AbiError(AbiError)
Tuple Fields
0: AbiError
Thrown when the internal BaseContract errors
DetokenizationError(InvalidOutputType)
Tuple Fields
Thrown when detokenizing an argument
MiddlewareError(<M as Middleware>::Error)
Tuple Fields
0: <M as Middleware>::Error
Thrown when a middleware call fails
ProviderError(ProviderError)
Tuple Fields
Thrown when a provider call fails
ConstructorError
Thrown during deployment if a constructor argument was passed in the deploy
call but a constructor was not present in the ABI
ContractNotDeployed
Thrown if a contract address is not found in the deployment transaction’s receipt
Trait Implementations
impl<M> Debug for ContractError<M> where
M: Debug + Middleware,
<M as Middleware>::Error: Debug,
impl<M> Debug for ContractError<M> where
M: Debug + Middleware,
<M as Middleware>::Error: Debug,
impl<M> Error for ContractError<M> where
M: Middleware,
ContractError<M>: Debug,
ContractError<M>: Display,
impl<M> Error for ContractError<M> where
M: Middleware,
ContractError<M>: Debug,
ContractError<M>: Display,
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl<M> !RefUnwindSafe for ContractError<M>
impl<M> Send for ContractError<M>
impl<M> Sync for ContractError<M>
impl<M> Unpin for ContractError<M> where
<M as Middleware>::Error: Unpin,
impl<M> !UnwindSafe for ContractError<M>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more