Class CtanResponseError

This exception is thrown when recieving an unexpected response.

Hierarchy

Constructors

Properties

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

Type declaration

stackTraceLimit: number

Accessors

  • get [toStringTag](): "CtanResponseError"
  • Returns "CtanResponseError"

  • get name(): "CtanResponseError"
  • Returns "CtanResponseError"

  • get request(): Request
  • node-fetch's request object.

    Returns Request

  • get response(): Response
  • node-fetch's response object.

    Returns Response

  • get status(): number
  • The HTTP response status code.

    Returns number

Methods

  • Parameters

    • this: void

    Returns object

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc