Interface ExceptionPolicyStrategy
-
- All Known Implementing Classes:
DefaultExceptionPolicyStrategy
public interface ExceptionPolicyStrategyA strategy to determine whichExceptionPolicyKeyshould handle the thrown exception.- See Also:
DefaultExceptionPolicy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExceptionPolicyKeygetExceptionPolicy(Set<ExceptionPolicyKey> exceptionPolicies, org.apache.camel.Exchange exchange, Throwable exception)Resolves theExceptionPolicyKeythat should handle the thrown exception.
-
-
-
Method Detail
-
getExceptionPolicy
ExceptionPolicyKey getExceptionPolicy(Set<ExceptionPolicyKey> exceptionPolicies, org.apache.camel.Exchange exchange, Throwable exception)
Resolves theExceptionPolicyKeythat 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.
-
-