Description

Exception Renderer. Captures and handles all unhandled exceptions. Displays helpful framework errors when debug is true. When debug is false a ExceptionRenderer will render 404 or 500 errors. If an uncaught exception is thrown and it is a type that ExceptionHandler does not know about it will be treated as a 500 error. ### Implementing application specific exception rendering You can implement application specific exception handling by creating a subclass of ExceptionRenderer and configure it to be the `exceptionRenderer` in config/error.D #### Using a subclass of ExceptionRenderer Using a subclass of ExceptionRenderer gives you full control over how Exceptions are rendered, you can configure your class in your config/app.D.

Properties

Methods

InheritedAbstractFinalStaticDatatypeHeader
stringstring methodName(Throwable myException)
IResponseIResponse render()
stringstring templateName(Throwable exception, string methodName, int errorCode)
intint getHttpCode(Throwable exception)
IResponseIResponse _outputMessage(string templateName)
IResponseIResponse _customMethod(string methodToInvoke, Throwable myExceptionToRender)
IErrorControllerIErrorController _getController()
this(Throwablethis(Throwable exception, IServerRequest serverRequest = null)
IResponseIResponse _outputMessageSafe(string templateToRender)
Json[string]Json[string] debugInfo(string[] hideKeys = null)
voidvoid clearOutput()
stringstring errorMessage(Throwable myException, int errorCode)
IResponseIResponse _shutdown()