Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

__isAuthError: boolean
code: undefined | ErrorCode | string & {}

Error code associated with the error. Most errors coming from HTTP responses will have a code, though some errors that occur before a response is received will not have one present. In that case {@link #status} will also be undefined.

details: null | { code: string; error: string }
message: string
name: string
stack?: string
status: number

HTTP status code that caused the error.

prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Type declaration

stackTraceLimit: number

Methods

  • toJSON(): { details: null | { code: string; error: string }; message: string; name: string; status: number }
  • Returns { details: null | { code: string; error: string }; message: string; name: string; status: number }

    • details: null | { code: string; error: string }
    • message: string
    • name: string
    • status: number
  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc