Skip to content

InternalRpcError

Extends

  • RpcError

Constructors

new InternalRpcError()

new InternalRpcError(cause): InternalRpcError

Parameters

cause: Error

Returns

InternalRpcError

Overrides

RpcError.constructor

Defined in

node_modules/.pnpm/viem@2.21.1_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@6.0.4_zod@3.23.8/node_modules/viem/_types/errors/rpc.d.ts:103

Properties

cause?

optional cause: unknown

Inherited from

RpcError.cause

Defined in

node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es2022.error.d.ts:24


code

code: RpcErrorCode | number & object

Inherited from

RpcError.code

Defined in

node_modules/.pnpm/viem@2.21.1_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@6.0.4_zod@3.23.8/node_modules/viem/_types/errors/rpc.d.ts:20


details

details: string

Inherited from

RpcError.details

Defined in

node_modules/.pnpm/viem@2.21.1_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@6.0.4_zod@3.23.8/node_modules/viem/_types/errors/base.d.ts:19


docsPath?

optional docsPath: string

Inherited from

RpcError.docsPath

Defined in

node_modules/.pnpm/viem@2.21.1_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@6.0.4_zod@3.23.8/node_modules/viem/_types/errors/base.d.ts:20


message

message: string

Inherited from

RpcError.message

Defined in

node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts:1077


metaMessages?

optional metaMessages: string[]

Inherited from

RpcError.metaMessages

Defined in

node_modules/.pnpm/viem@2.21.1_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@6.0.4_zod@3.23.8/node_modules/viem/_types/errors/base.d.ts:21


name

name: string

Inherited from

RpcError.name

Defined in

node_modules/.pnpm/viem@2.21.1_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@6.0.4_zod@3.23.8/node_modules/viem/_types/errors/base.d.ts:24


shortMessage

shortMessage: string

Inherited from

RpcError.shortMessage

Defined in

node_modules/.pnpm/viem@2.21.1_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@6.0.4_zod@3.23.8/node_modules/viem/_types/errors/base.d.ts:22


stack?

optional stack: string

Inherited from

RpcError.stack

Defined in

node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts:1078


version

version: string

Inherited from

RpcError.version

Defined in

node_modules/.pnpm/viem@2.21.1_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@6.0.4_zod@3.23.8/node_modules/viem/_types/errors/base.d.ts:23


code

static code: -32603

Defined in

node_modules/.pnpm/viem@2.21.1_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@6.0.4_zod@3.23.8/node_modules/viem/_types/errors/rpc.d.ts:102


prepareStackTrace()?

static optional prepareStackTrace: (err, stackTraces) => any

Optional override for formatting stack traces

See

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Parameters

err: Error

stackTraces: CallSite[]

Returns

any

Inherited from

RpcError.prepareStackTrace

Defined in

node_modules/.pnpm/@types+node@20.14.8/node_modules/@types/node/globals.d.ts:28


stackTraceLimit

static stackTraceLimit: number

Inherited from

RpcError.stackTraceLimit

Defined in

node_modules/.pnpm/@types+node@20.14.8/node_modules/@types/node/globals.d.ts:30

Methods

walk()

walk(undefined)

walk(): Error

Returns

Error

Inherited from

RpcError.walk

Defined in

node_modules/.pnpm/viem@2.21.1_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@6.0.4_zod@3.23.8/node_modules/viem/_types/errors/base.d.ts:26

walk(fn)

walk(fn): null | Error

Parameters

fn

Returns

null | Error

Inherited from

RpcError.walk

Defined in

node_modules/.pnpm/viem@2.21.1_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@6.0.4_zod@3.23.8/node_modules/viem/_types/errors/base.d.ts:27


captureStackTrace()

captureStackTrace(targetObject, constructorOpt)

static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

targetObject: object

constructorOpt?: Function

Returns

void

Inherited from

RpcError.captureStackTrace

Defined in

node_modules/.pnpm/@types+node@20.14.8/node_modules/@types/node/globals.d.ts:21

captureStackTrace(targetObject, constructorOpt)

static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

targetObject: object

constructorOpt?: Function

Returns

void

Inherited from

RpcError.captureStackTrace

Defined in

node_modules/.pnpm/@types+node@22.5.1/node_modules/@types/node/globals.d.ts:67

captureStackTrace(targetObject, constructorOpt)

static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

targetObject: object

constructorOpt?: Function

Returns

void

Inherited from

RpcError.captureStackTrace

Defined in

node_modules/.pnpm/@types+node@20.14.15/node_modules/@types/node/globals.d.ts:21

captureStackTrace(targetObject, constructorOpt)

static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

targetObject: object

constructorOpt?: Function

Returns

void

Inherited from

RpcError.captureStackTrace

Defined in

node_modules/.pnpm/bun-types@1.1.22/node_modules/bun-types/globals.d.ts:1629

captureStackTrace(targetObject, constructorOpt)

static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

targetObject: object

constructorOpt?: Function

Returns

void

Inherited from

RpcError.captureStackTrace

Defined in

node_modules/.pnpm/@types+node@20.12.14/node_modules/@types/node/globals.d.ts:21