Package 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
AUnitOfWork
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 thegetCauses()
method.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CamelUnitOfWorkException(Exchange exchange, List<Exception> causes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Exception>
getCauses()
-
Methods inherited from class org.apache.camel.CamelExchangeException
createExceptionMessage, getExchange
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-