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: 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