Class ErrorHandler

Creates a middleware that handles errors and generates the responses.

Constructors

Properties

_HTTPError: typeof HTTPError

The Error class used by the "known errors".

_logger: SimpleLogger

The service that will log the messages in the console.

The customization options.

_responsesBuilder: ResponsesBuilder

The service to generate the responses.

_statuses: Statuses

The uility service to get HTTP status codes.

Accessors

Methods