* @param exceptionClass the exception class
* @param handler The handler
*/
public static synchronized void exception(Class<? extends Exception> exceptionClass, ExceptionHandler handler) {
// wrap
ExceptionHandlerImpl wrapper = new ExceptionHandlerImpl(exceptionClass) {
@Override
public void handle(Exception exception, Request request, Response response) {
handler.handle(exception, request, response);
}
};