org.apache.camel
Class CamelUnitOfWorkException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.camel.CamelException
org.apache.camel.CamelExchangeException
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
CamelUnitOfWorkException
public CamelUnitOfWorkException(Exchange exchange,
List<Exception> causes)
getCauses
public List<Exception> getCauses()
Apache Camel