Class ExceptionPolicyKey
- java.lang.Object
-
- org.apache.camel.processor.errorhandler.ExceptionPolicyKey
-
public final class ExceptionPolicyKey extends Object
Exception policy key is a compound key for storing: route id + exception class + when => exception type. This is used by Camel to store the onException types configured that has or has not predicates attached (when).
-
-
Constructor Summary
Constructors Constructor Description ExceptionPolicyKey(String routeId, Class<? extends Throwable> exceptionClass, org.apache.camel.Predicate when)Key for exception clause
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Class<?>getExceptionClass()StringgetRouteId()org.apache.camel.PredicategetWhen()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
ExceptionPolicyKey
public ExceptionPolicyKey(String routeId, Class<? extends Throwable> exceptionClass, org.apache.camel.Predicate when)
Key for exception clause- Parameters:
routeId- the route, or use null for a global scopedexceptionClass- the exception classwhen- optional predicate when the exception clause should trigger
-
-