Class: EIP1193ChainDisconnectedError
Defined in: support/wallet-common/lib/errors/eip1193Errors.ts:77
Provider RPC error code 4901
Extends
Constructors
Constructor
new EIP1193ChainDisconnectedError(details?: string, cause?: unknown): EIP1193ChainDisconnectedError;Defined in: support/wallet-common/lib/errors/eip1193Errors.ts:78
Parameters
details?
string
cause?
unknown
Returns
EIP1193ChainDisconnectedError
Overrides
Methods
toString()
toString(): string;Defined in: support/wallet-common/lib/errors/HappyRpcError.ts:53
Returns a string representation of an object.
Returns
string
Inherited from
Properties
cause?
readonly optional cause: unknown;Defined in: support/wallet-common/lib/errors/HappyRpcError.ts:40
The thing that caused this to be thrown (or a string representation of it in case the error was inflated from serialized form).
Inherited from
code
readonly code:
| 3
| EIP1193ErrorCodes
| EIP1474ErrorCodes;Defined in: support/wallet-common/lib/errors/HappyRpcError.ts:22
Standard RPC error code from EIP1193ErrorCodes or EIP1474ErrorCodes
Inherited from
ctxMessages?
readonly optional ctxMessages: string[];Defined in: support/wallet-common/lib/errors/HappyRpcError.ts:34
This can store extra contextual information, similar to Viem's metaMessages.
We used it to include the RPC URL and the request body, just as Viem would do for its own errors.
Inherited from
details?
readonly optional details: string;Defined in: support/wallet-common/lib/errors/HappyRpcError.ts:28
Additional details provided when throwing the error.
Inherited from
shortMessage
readonly shortMessage: string;Defined in: support/wallet-common/lib/errors/HappyRpcError.ts:25
Short message matching the error code.
