Hierarchy

  • Error
    • JSONRPCError

Index

Constructors

constructor

  • new JSONRPCError(code: number, message: string, data?: any, id?: any): JSONRPCError

Properties

code

code: number

Optional data

data: any

Optional id

id: any

message

message: string

name

name: string

Optional stack

stack: string

Static Optional prepareStackTrace

prepareStackTrace: function

Type declaration

    • (err: Error, stackTraces: CallSite[]): any
    • Optional override for formatting stack traces

      Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

Static stackTraceLimit

stackTraceLimit: number

Methods

Static captureStackTrace

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

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Static tryFrom