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
Thrown when the ABI decoding fails
AbiError(AbiError)Thrown when the internal BaseContract errors
Tuple Fields of AbiError
0: AbiErrorDetokenizationError(InvalidOutputType)Thrown when detokenizing an argument
Tuple Fields of DetokenizationError
MiddlewareError(M::Error)Thrown when a middleware call fails
Tuple Fields of MiddlewareError
0: M::ErrorProviderError(ProviderError)Thrown when a provider call fails
Tuple Fields of ProviderError
Thrown during deployment if a constructor argument was passed in the deploy
call but a constructor was not present in the ABI
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
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