Errors
Error classes used by Wagmi.
BaseError
Error class extended by all errors.
import { BaseError } from '@wagmi/vue'
Config
ConnectorAccountNotFoundError
When an account does not exist on the connector or is unable to be used.
import { ConnectorAccountNotFoundError } from '@wagmi/vue'
ConnectorAlreadyConnectedError
When a connector is already connected.
import { ConnectorAlreadyConnectedError } from '@wagmi/vue'
ConnectorChainMismatchError
When the Wagmi Config is out-of-sync with the connector's active chain ID. This is rare and likely an upstream wallet issue.
import { ConnectorChainMismatchError } from '@wagmi/vue'
ChainNotConfiguredError
When a chain is not configured. You likely need to add the chain to Config['chains']
.
import { ChainNotConfiguredError } from '@wagmi/vue'
ConnectorNotConnectedError
When a connector is not connected.
import { ConnectorNotConnectedError } from '@wagmi/vue'
ConnectorNotFoundError
When a connector is not found or able to be used.
import { ConnectorNotFoundError } from '@wagmi/vue'
ConnectorUnavailableReconnectingError
During the reconnection step, the only connector methods guaranteed to be available are: id
, name
, type
, uuid
. All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored. This error commonly occurs for connectors that asynchronously inject after reconnection has already started.
import { ConnectorUnavailableReconnectingError } from '@wagmi/vue'
Connector
ProviderNotFoundError
When a connector's provider is not found or able to be used.
import { ProviderNotFoundError } from '@wagmi/vue'
SwitchChainNotSupportedError
When switching chains is not supported by connectors.
import { SwitchChainNotSupportedError } from '@wagmi/vue'