org.apache.camel.processor.exceptionpolicy
Interface ExceptionPolicyStrategy
- All Known Implementing Classes:
- DefaultExceptionPolicyStrategy
public interface ExceptionPolicyStrategy
A strategy to determine which OnExceptionDefinition
should handle the thrown
exception.
- See Also:
DefaultExceptionPolicy
getExceptionPolicy
OnExceptionDefinition getExceptionPolicy(Map<ExceptionPolicyKey,OnExceptionDefinition> exceptionPolicies,
Exchange exchange,
Throwable exception)
- Resolves the
OnExceptionDefinition
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.
Apache CAMEL