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

Method Summary
 OnExceptionDefinition getExceptionPolicy(Map<ExceptionPolicyKey,OnExceptionDefinition> exceptionPolicies, Exchange exchange, Throwable exception)
          Resolves the OnExceptionDefinition that should handle the thrown exception.
 

Method Detail

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 from
exchange - the exchange
exception - the exception that was thrown
Returns:
the resolved exception type to handle this exception, null if none found.


Apache CAMEL