@absolunet/ioc2.1.0

View on GitHub

ViewDriver

Pretty Error exception render driver.

Constructor

new ViewDriver()

Source:

Extends

  • foundation.exceptions.Handler.drivers.Driver

Members

(static) dependencies :Array.<string>

Source:
Class dependencies: ['app'].

Methods

renderView(exception)

Source:
Render view template, if possible. If not, fallback on text.
Parameters:
Name Type Description
exception Error The exception to render.
Returns:
The rendered exception.
Type
string

renderText()

Source:
Render plain text.
Returns:
The rendered text.
Type
string