Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RpcError<T>

Error subclass implementing JSON RPC 2.0 errors and Ethereum RPC errors per EIP-1474.

see

https://eips.ethereum.org/EIPS/eip-1474

Type parameters

  • T = undefined

Hierarchy

Index

Constructors

  • new RpcError<T>(code: number, message: string, internal?: unknown, data?: T): RpcError<T>
  • Type parameters

    • T = undefined

    Parameters

    • code: number
    • message: string
    • Optional internal: unknown
    • Optional data: T

    Returns RpcError<T>

Properties

code: number
data?: T
internal?: unknown
message: string
name: string
stack?: string
prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Type declaration

stackTraceLimit: number

Methods

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc