Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

  • new AuthError(message: string, status?: number, code?: string): AuthError
  • Parameters

    • message: string
    • Optional status: number
    • Optional code: string

    Returns AuthError

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