org.apache.camel
Class CamelUnitOfWorkException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.camel.CamelException
              extended by org.apache.camel.CamelExchangeException
                  extended by org.apache.camel.CamelUnitOfWorkException
All Implemented Interfaces:
Serializable

public class CamelUnitOfWorkException
extends CamelExchangeException

A UnitOfWork failed with a number of caused exceptions.

This implementation will provide the first exception from the list in its cause, so its shown in the stacktrace etc when logging this exception. But the remainder exceptions is only available from the getCauses() method.

See Also:
Serialized Form

Constructor Summary
CamelUnitOfWorkException(Exchange exchange, List<Exception> causes)
           
 
Method Summary
 List<Exception> getCauses()
           
 
Methods inherited from class org.apache.camel.CamelExchangeException
createExceptionMessage, getExchange
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CamelUnitOfWorkException

public CamelUnitOfWorkException(Exchange exchange,
                                List<Exception> causes)
Method Detail

getCauses

public List<Exception> getCauses()


Apache CAMEL