Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • HTTPError
    • TokenError

Index

Constructors

constructor

  • new TokenError(request: Request, options: NormalizedOptions, response: Response, responseJson: { error: string; error_description?: string; error_hint?: string; error_verbose?: string }): TokenError
  • Parameters

    • request: Request
    • options: NormalizedOptions
    • response: Response
    • responseJson: { error: string; error_description?: string; error_hint?: string; error_verbose?: string }
      • error: string
      • Optional error_description?: string
      • Optional error_hint?: string
      • Optional error_verbose?: string

    Returns TokenError

Properties

message

message: string = ...

name

name: string = 'TokenError'

options

options: NormalizedOptions

request

request: Request

response

response: Response

responseJson

responseJson: { error: string; error_description?: string; error_hint?: string; error_verbose?: string }

Type declaration

  • error: string
  • Optional error_description?: string
  • Optional error_hint?: string
  • Optional error_verbose?: string

Optional stack

stack: string

Static stackTraceLimit

stackTraceLimit: number

Methods

Static captureStackTrace

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

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Static Optional prepareStackTrace

  • prepareStackTrace(err: Error, stackTraces: CallSite[]): any

Generated using TypeDoc