ResourceUnavailableRpcError
Extends
RpcError
Constructors
new ResourceUnavailableRpcError()
new ResourceUnavailableRpcError(
cause
):ResourceUnavailableRpcError
Parameters
• cause: Error
Returns
Overrides
RpcError.constructor
Defined in
node_modules/.pnpm/viem@2.21.1_bufferutil@4.0.8_typescript@5.6.2_utf-8-validate@6.0.4_zod@3.23.8/node_modules/viem/_types/errors/rpc.d.ts:143
Properties
cause?
optional
cause:unknown
Inherited from
RpcError.cause
Defined in
node_modules/.pnpm/typescript@5.6.2/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.6.2_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.6.2_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.6.2_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.6.2/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.6.2_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.6.2_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.6.2_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.6.2/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.6.2_utf-8-validate@6.0.4_zod@3.23.8/node_modules/viem/_types/errors/base.d.ts:23
code
static
code:-32002
Defined in
node_modules/.pnpm/viem@2.21.1_bufferutil@4.0.8_typescript@5.6.2_utf-8-validate@6.0.4_zod@3.23.8/node_modules/viem/_types/errors/rpc.d.ts:142
prepareStackTrace()?
static
optional
prepareStackTrace: (err
,stackTraces
) =>any
Optional override for formatting stack traces
Parameters
• err: Error
• stackTraces: CallSite
[]
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
RpcError.prepareStackTrace
Defined in
node_modules/.pnpm/@types+node@22.7.3/node_modules/@types/node/globals.d.ts:143
stackTraceLimit
static
stackTraceLimit:number
Inherited from
RpcError.stackTraceLimit
Defined in
node_modules/.pnpm/@types+node@22.7.3/node_modules/@types/node/globals.d.ts:145
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.6.2_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.6.2_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@22.7.3/node_modules/@types/node/globals.d.ts:136
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.29/node_modules/bun-types/globals.d.ts:1630
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