public final class ExceptionPolicyKey extends Object
Constructor and Description |
---|
ExceptionPolicyKey(Class<? extends Throwable> exceptionClass,
WhenDefinition when)
Deprecated.
will be removed in the near future, use the other constructor
|
ExceptionPolicyKey(String routeId,
Class<? extends Throwable> exceptionClass,
WhenDefinition when)
Key for exception clause
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Class<?> |
getExceptionClass() |
String |
getRouteId() |
WhenDefinition |
getWhen() |
int |
hashCode() |
static ExceptionPolicyKey |
newInstance(Class<? extends Throwable> exceptionClass)
Deprecated.
will be removed in the near future. Use the constructor instead.
|
static ExceptionPolicyKey |
newInstance(Class<? extends Throwable> exceptionClass,
WhenDefinition when)
Deprecated.
will be removed in the near future. Use the constructor instead.
|
String |
toString() |
@Deprecated public ExceptionPolicyKey(Class<? extends Throwable> exceptionClass, WhenDefinition when)
public ExceptionPolicyKey(String routeId, Class<? extends Throwable> exceptionClass, WhenDefinition when)
routeId
- the route, or use null for a global scopedexceptionClass
- the exception classwhen
- optional predicate when the exception clause should triggerpublic Class<?> getExceptionClass()
public WhenDefinition getWhen()
public String getRouteId()
@Deprecated public static ExceptionPolicyKey newInstance(Class<? extends Throwable> exceptionClass)
@Deprecated public static ExceptionPolicyKey newInstance(Class<? extends Throwable> exceptionClass, WhenDefinition when)
Apache Camel