Hierarchy

  • Error
    • APIError

Constructors

Properties

cause?: unknown
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 = 'APIError'
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Type declaration

stackTraceLimit: number

Accessors

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

    Returns number

  • 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

Generated using TypeDoc