Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

  • new AuthApiError(message: string, status: number, code: undefined | string): AuthApiError
  • Parameters

    • message: string
    • status: number
    • code: undefined | string

    Returns AuthApiError

Properties

__isAuthError: boolean
code: undefined | 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.

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

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc