EthersError
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/utils/errors.d.ts:85
All errors in Ethers include properties to assist in machine-readable errors.
Extends
Section titled “Extends”Extended by
Section titled “Extended by”Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
T extends ErrorCode | ErrorCode |
Properties
Section titled “Properties”cause?
Section titled “cause?”optional cause: unknown;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26
Inherited from
Section titled “Inherited from”Error.causecode: ErrorCode;Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/utils/errors.d.ts:89
The string error code.
error?
Section titled “error?”optional error: Error;Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/utils/errors.d.ts:104
Any related error.
optional info: Record<string, any>;Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/utils/errors.d.ts:100
Additional info regarding the error that may be useful.
This is generally helpful mostly for human-based debugging.
message
Section titled “message”message: string;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077
Inherited from
Section titled “Inherited from”Error.messagename: string;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1076
Inherited from
Section titled “Inherited from”Error.nameshortMessage
Section titled “shortMessage”shortMessage: string;Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/utils/errors.d.ts:94
A short message describing the error, with minimal additional details.
stack?
Section titled “stack?”optional stack: string;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078
Inherited from
Section titled “Inherited from”Error.stack