Description

Entry point to UIM"s exception handling. Using the `register()` method you can attach an ExceptionTrap to D"s default exception handler and register a shutdown handler to handle fatal errors. When exceptions are trapped the `Exception.beforeRender` event is triggered. Then exceptions are logged (if enabled) and finally "rendered" using the defined renderer. Stopping the `Exception.beforeRender` event has no effect, as we always need to render a response to an exception and custom renderers should be used if you want to replace or skip rendering an exception. If undefined, an ExceptionRenderer will be selected based on the current SAPI (CLI or Web).

Properties

Methods

InheritedAbstractFinalStaticDatatypeHeader
voidvoid logInternalError(Throwable exceptionToLog)
IExceptionRendererIExceptionRenderer renderer(Throwable exceptionToRender, IServerRequest serverRequest = null)
DExceptionTrapDExceptionTrap instance()
voidvoid unregister()
voidvoid handleShutdown()
this(Json[string]this(Json[string] initData)
voidvoid handleFatalError(int errorCode, string errorDescription, string fileWithError, int errorLine)
boolbool initialize(Json[string] initData = null)
voidvoid increaseMemoryLimit(int additionalKb)
voidvoid handleException(Throwable exception)
this(stringthis(string newName, Json[string] initData = null)
voidvoid logException(Throwable exceptionToLog, IServerRequest serverRequest = null)
this()this()
IErrorLoggerIErrorLogger logger()
voidvoid register()
stringstring chooseRenderer()