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.
Inherited | Abstract | Final | Static | Datatype | Header |
---|---|---|---|---|---|
string | string methodName(Throwable myException) | ||||
IResponse | IResponse render() | ||||
string | string templateName(Throwable exception, string methodName, int errorCode) | ||||
int | int getHttpCode(Throwable exception) | ||||
IResponse | IResponse _outputMessage(string templateName) | ||||
IResponse | IResponse _customMethod(string methodToInvoke, Throwable myExceptionToRender) | ||||
IErrorController | IErrorController _getController() | ||||
this(Throwable | this(Throwable exception, IServerRequest serverRequest = null) | ||||
IResponse | IResponse _outputMessageSafe(string templateToRender) | ||||
Json[string] | Json[string] debugInfo(string[] hideKeys = null) | ||||
void | void clearOutput() | ||||
string | string errorMessage(Throwable myException, int errorCode) | ||||
IResponse | IResponse _shutdown() |