General API Error

Hierarchy

  • Error
    • APIError

Constructors

  • Parameters

    • code: number

      code

    • msg: string
    • data: any

      data

    Returns APIError

Properties

code: number

code

data: any

data

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

Type declaration

stackTraceLimit: number

Methods

  • Returns

    true if the error was caused by missing/invalid credentials

    Returns boolean

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc