Hierarchy

  • Error
    • APIError

Constructors

  • Parameters

    Returns APIError

Properties

message: string
path: string

The path to the API that failed, e.g. /v1/chain/get_info.

response: APIResponse

The full response from the API that failed.

stack?: string
__className: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Type declaration

stackTraceLimit: number

Accessors

  • get code(): number
  • The nodeos error code, e.g. 3080002.

    Returns number

  • get details(): APIErrorDetail[]
  • List of exceptions, if any.

    Returns APIErrorDetail[]

  • get error(): undefined | APIErrorData
  • The nodeos error object.

    Returns undefined | APIErrorData

  • get name(): string
  • The nodeos error name, e.g. tx_net_usage_exceeded

    Returns string

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

  • Parameters

    Returns string