exceptionHandler property

ExceptionHandler exceptionHandler
read / write

Server level exception/error handler.

If an exception occurs outside of a pipeline, or is not handled by the pipeline's exception handler, the exception is passed to this exception handler to process.

If this exception/exception handler is not set (i.e. null), an internal default exception/error handler will be used. Its output is very plain and basic, so most applications should provide their own server-level exception/error handler.

Ideally, an application's server-level exception/error handler should not thrown an exception. But if it did throw an exception, the internal default exception/error handler will also be used to handle it.

Implementation

ExceptionHandler exceptionHandler