Base class for custom errors throw by the API.

Hierarchy

Constructors

  • Parameters

    • Optional message: string

      Description of the error.

    • Optional error: any

      The originating error, if relevant.

    Returns ApiError

Properties

data?: any

Additional data provided as part of the error.

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

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc