Search in sources :

Example 1 with ExceptionHandlersImplementer

use of com.tvd12.ezyhttp.server.core.asm.ExceptionHandlersImplementer in project ezyhttp by youngmonkeys.

the class ApplicationContextBuilder method addExceptionHandlers.

protected void addExceptionHandlers() {
    List<Object> exceptionHandlerList = exceptionHandlerManager.getExceptionHandlerList();
    ExceptionHandlersImplementer implementer = newExceptionHandlersImplementer();
    Map<Class<?>, UncaughtExceptionHandler> exceptionHandlers = implementer.implement(exceptionHandlerList);
    exceptionHandlerManager.addUncaughtExceptionHandlers(exceptionHandlers);
}
Also used : ExceptionHandlersImplementer(com.tvd12.ezyhttp.server.core.asm.ExceptionHandlersImplementer) UncaughtExceptionHandler(com.tvd12.ezyhttp.server.core.handler.UncaughtExceptionHandler)

Aggregations

ExceptionHandlersImplementer (com.tvd12.ezyhttp.server.core.asm.ExceptionHandlersImplementer)1 UncaughtExceptionHandler (com.tvd12.ezyhttp.server.core.handler.UncaughtExceptionHandler)1