AboutSupportDeveloper GuideVersion 2.3.0

Describes errors thrown during api requests.

Hierarchy

Constructors

  • Parameters

    • Optional message: string

      Description of the error.

    • Optional status: number

      HTTP status code of the error response, if relevant.

    • Optional error: any

      The originating error, if relevant.

    Returns ApiRequestError

Properties

data?: any

Additional data provided as part of the error.

message: string
name: string
stack?: string
status?: number

Response HTTP status code (if provided).

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

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc