Interface ExceptionPolicyStrategy
-
- All Known Implementing Classes:
DefaultExceptionPolicyStrategy
public interface ExceptionPolicyStrategy
A strategy to determine whichExceptionPolicyKey
should handle the thrown exception. To use a custom implementation, then register the customExceptionPolicyStrategy
instance to the CamelRegistry
.- See Also:
for the DefaultExceptionPolicy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExceptionPolicyKey
getExceptionPolicy(Set<ExceptionPolicyKey> exceptionPolicies, org.apache.camel.Exchange exchange, Throwable exception)
Resolves theExceptionPolicyKey
that should handle the thrown exception.
-
-
-
Method Detail
-
getExceptionPolicy
ExceptionPolicyKey getExceptionPolicy(Set<ExceptionPolicyKey> exceptionPolicies, org.apache.camel.Exchange exchange, Throwable exception)
Resolves theExceptionPolicyKey
that should handle the thrown exception.- Parameters:
exceptionPolicies
- the configured exception policies to resolve fromexchange
- the exchangeexception
- the exception that was thrown- Returns:
- the resolved exception type to handle this exception, null if none found.
-
-