Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • HTTPError
    • ApiError

Index

Constructors

constructor

  • new ApiError(request: Request & { context?: string }, options: NormalizedOptions, response: Response, message: string): ApiError
  • Parameters

    • request: Request & { context?: string }
    • options: NormalizedOptions
    • response: Response
    • message: string

    Returns ApiError

Properties

Readonly message

message: string

name

name: string = 'ApiError'

options

options: NormalizedOptions

request

request: Request

response

response: Response

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 fromHTTPError

  • fromHTTPError(error: HTTPError): Promise<ApiError>
  • Parameters

    • error: HTTPError

    Returns Promise<ApiError>

Static Optional prepareStackTrace

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

Generated using TypeDoc