Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ErrorResponseFactory

Response factory that renders an Error object to the client in a specified format.

Hierarchy

Index

Constructors

constructor

Properties

Protected targetMode

targetMode: "html" | "json" | "auto" = 'auto'

Protected targetStatus

targetStatus: HTTPStatus = ...

The status that should be set on the response.

Readonly thrownError

thrownError: Error

Methods

Protected buildHTML

  • buildHTML(thrownError: Error): string

Protected buildJSON

  • buildJSON(thrownError: Error): string

mode

status

write

Extollo Logo

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

Extollo is a free & libre application framework in TypeScript.