Options
All
  • Public
  • Public/Protected
  • All
Menu

An error class that has an associated HTTP status.

When thrown inside the request lifecycle, this will result in the HTTP status code being applied to the response.

Hierarchy

Index

Constructors

constructor

Properties

context

context: {} = {}

Type declaration

  • [key: string]: any

Readonly message

message: string = ''

name

name: string

Optional originalError

originalError: Error

Optional stack

stack: string

Readonly status

status: HTTPStatus = 500

Static Optional prepareStackTrace

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

Optional override for formatting stack traces

see

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Type declaration

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

      • err: Error
      • stackTraces: CallSite[]

      Returns any

Static stackTraceLimit

stackTraceLimit: number

Methods

Static captureStackTrace

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
Extollo Logo

extollo (v. latin) - to lift up, to elevate

Extollo is a free & libre application framework in TypeScript.