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> exceptionPolicices,
Exchange exchange,
Throwable exception)
- Resolves the
OnExceptionDefinition that should handle the thrown exception.
- Parameters:
exceptionPolicices - 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.
Copyright © 2009 Apache Software Foundation. All Rights Reserved.