@absolunet/ioc2.1.0

View on GitHub

OuchDriver

Ouch exception render driver.

Constructor

new OuchDriver()

Source:

Extends

  • foundation.exceptions.Handler.drivers.Driver

Members

(static) dependencies :Array.<string>

Source:
Class dependencies: ['app'].

Ouch :Ouch

Source:
The ouch module.

Methods

sendJsonResponse(exception, request, response, output)

Source:
Send JSON response based on given output.
Parameters:
Name Type Description
exception Error | string The exception to render.
request request The current request instance.
response response The current response instance.
output Array.<string> The JsonResponseHandler output.