Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HttpException

Error that represents a http exception

Hierarchy

  • Error
    • HttpException

Index

Constructors

constructor

  • new HttpException(message: string, code: number): HttpException

Properties

Private _code

_code: number

Http code.

Private _content

_content: any

Content of the error

message

message: string

name

name: string

Optional prepareStackTrace

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

Optional override for formatting stack traces

see

https://github.com/v8/v8/wiki/Stack%20Trace%20API#customizing-stack-traces

Type declaration

    • (err: Error, stackTraces: NodeJS.CallSite[]): any
    • Parameters

      • err: Error
      • stackTraces: NodeJS.CallSite[]

      Returns any

Optional stack

stack: string

stackTraceLimit

stackTraceLimit: number

Accessors

code

  • get code(): number

content

  • get content(): any

Methods

captureStackTrace

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

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc