This is used by Camel to store the onException types configued that has or has not predicates attached (when).
575859606162636465
RouteDefinition route = ProcessorDefinitionHelper.getRoute(exceptionType); if (route != null) { routeId = route.getId(); } } ExceptionPolicyKey key = new ExceptionPolicyKey(routeId, clazz, exceptionType.getOnWhen()); exceptionPolicies.put(key, exceptionType); } }
424344454647484950
addChildService(processor); List<Class> list = exceptionType.getExceptionClasses(); for (Class clazz : list) { ExceptionPolicyKey key = new ExceptionPolicyKey(clazz, exceptionType.getOnWhen()); exceptionPolicies.put(key, exceptionType); } }
626364656667686970