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.
Inherited | Abstract | Final | Static | Datatype | Header |
---|---|---|---|---|---|
void | void write(string outputText) | ||||
IResponse | IResponse render() | ||||
IResponse | IResponse _customMethod(string methodName, Throwable exceptionToRender) | ||||
int | int getHttpCode(Throwable exception) | ||||
string | string templateName(Throwable exception, string methodName, int errorCode) | ||||
} | } catch (Throwable outer) | ||||
} | } catch (MissingTemplateException anException) | ||||
IResponse | IResponse _outputMessage(string templateToRender) | ||||
} | } catch (MissingPluginException anException) | ||||
IErrorController | IErrorController _getController() | ||||
this(Throwable | this(Throwable exception, IServerRequest serverRequest = null) | ||||
void | void write(IResponse outputResponse) | ||||
string | string methodName(Throwable exception) | ||||
Json[string] | Json[string] debugInfo(string[] hideKeys = null) | ||||
IResponse | IResponse _outputMessageSafe(string templateText) | ||||
void | void clearOutput() | ||||
string | string errorMessage(Throwable exception, int errorCode) | ||||
IResponse | IResponse _shutdown() |