Enum ethers_contract::ContractError [−][src]
pub enum ContractError<M: Middleware> {
DecodingError(Error),
AbiError(AbiError),
DetokenizationError(InvalidOutputType),
MiddlewareError(M::Error),
ProviderError(ProviderError),
ConstructorError,
ContractNotDeployed,
}Expand description
An Error which is thrown when interacting with a smart contract
Variants
DecodingError(Error)
Thrown when the ABI decoding fails
AbiError(AbiError)
Tuple Fields
0: AbiErrorThrown when the internal BaseContract errors
DetokenizationError(InvalidOutputType)
Tuple Fields
Thrown when detokenizing an argument
MiddlewareError(M::Error)
Tuple Fields
0: M::ErrorThrown 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
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
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