An error thrown on non-2XX status codes from the Data API, such as 4XX or 5XX errors.

Hierarchy (view full)

Constructors

Properties

body?: string

The raw string body of the HTTP response, if it exists

message: string
name: string

The "raw", errored response from the API.

stack?: string
status: number

The error descriptors returned by the API to describe what went wrong.

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

Optional override for formatting stack traces

Type declaration

    • (err, stackTraces): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void