org.apache.camel.processor.exceptionpolicy
Interface ExceptionPolicyStrategy

All Known Implementing Classes:
DefaultExceptionPolicyStrategy

public interface ExceptionPolicyStrategy

A strategy to determine which ExceptionType should handle the thrown exception.

See Also:
DefaultExceptionPolicy

Method Summary
 ExceptionType getExceptionPolicy(Map<Class,ExceptionType> exceptionPolicices, Exchange exchange, Throwable exception)
          Resolves the ExceptionType that should handle the thrown exception.
 

Method Detail

getExceptionPolicy

ExceptionType getExceptionPolicy(Map<Class,ExceptionType> exceptionPolicices,
                                 Exchange exchange,
                                 Throwable exception)
Resolves the ExceptionType that should handle the thrown exception.

Parameters:
exceptionPolicices - 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.


Copyright © 2008 IONA Open Source Community. All Rights Reserved.