}
}
public void configure(RouteContext routeContext, ErrorHandler handler) {
if (handler instanceof ErrorHandlerSupport) {
ErrorHandlerSupport handlerSupport = (ErrorHandlerSupport) handler;
for (OnExceptionDefinition exception : exceptions) {
handlerSupport.addExceptionPolicy(routeContext, exception);
}
}
}