org.apache.camel.processor.exceptionpolicy
Class DefaultExceptionPolicyStrategy

java.lang.Object
  extended by org.apache.camel.processor.exceptionpolicy.DefaultExceptionPolicyStrategy
All Implemented Interfaces:
ExceptionPolicyStrategy

public class DefaultExceptionPolicyStrategy
extends Object
implements ExceptionPolicyStrategy

The default strategy used in Camel to resolve the ExceptionType that should handle the thrown exception.

This strategy applies the following rules:


Constructor Summary
DefaultExceptionPolicyStrategy()
           
 
Method Summary
 ExceptionType getExceptionPolicy(Map<Class,ExceptionType> exceptionPolicices, Exchange exchange, Throwable exception)
          Resolves the ExceptionType that should handle the thrown exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultExceptionPolicyStrategy

public DefaultExceptionPolicyStrategy()
Method Detail

getExceptionPolicy

public ExceptionType getExceptionPolicy(Map<Class,ExceptionType> exceptionPolicices,
                                        Exchange exchange,
                                        Throwable exception)
Description copied from interface: ExceptionPolicyStrategy
Resolves the ExceptionType that should handle the thrown exception.

Specified by:
getExceptionPolicy in interface ExceptionPolicyStrategy
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.