Skip to content

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.

Type ParameterDefault type
T extends ErrorCodeErrorCode
optional cause: unknown;

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26

Error.cause

code: ErrorCode;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/utils/errors.d.ts:89

The string error code.


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: string;

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077

Error.message

name: string;

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Error.name

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.


optional stack: string;

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078

Error.stack