Custom Error class that is returned from the API when a request fails

Hierarchy

  • Error
    • APIError

Constructors

Properties

prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number
code: string
details: null | {
    [key: string]: any;
}

Type declaration

  • [key: string]: any
link: string
traceId: string
name: string
message: string
stack?: string
cause?: unknown

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc