Description

Web Exception Renderer. Captures and handles all unhandled exceptions. Displays helpful framework errors when debug is true. When debug is false, WebExceptionRenderer will render 404 or 500 errors. If an uncaught exception is thrown and it is a type that WebExceptionHandler 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 WebExceptionRenderer and configure it to be the `exceptionRenderer` in config/error.d #### Using a subclass of WebExceptionRenderer Using a subclass of WebExceptionRenderer gives you full control over how Exceptions are rendered, you can configure your class in your config/app.d.

Properties

Methods

InheritedAbstractFinalStaticDatatypeHeader
voidvoid write(string outputText)
IResponseIResponse render()
IResponseIResponse _customMethod(string methodName, Throwable exceptionToRender)
intint getHttpCode(Throwable exception)
stringstring templateName(Throwable exception, string methodName, int errorCode)
}} catch (Throwable outer)
}} catch (MissingTemplateException anException)
IResponseIResponse _outputMessage(string templateToRender)
}} catch (MissingPluginException anException)
IErrorControllerIErrorController _getController()
this(Throwablethis(Throwable exception, IServerRequest serverRequest = null)
voidvoid write(IResponse outputResponse)
stringstring methodName(Throwable exception)
Json[string]Json[string] debugInfo(string[] hideKeys = null)
IResponseIResponse _outputMessageSafe(string templateText)
voidvoid clearOutput()
stringstring errorMessage(Throwable exception, int errorCode)
IResponseIResponse _shutdown()