Class RollbackExchangeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.camel.CamelException
org.apache.camel.CamelExchangeException
org.apache.camel.RollbackExchangeException
- All Implemented Interfaces:
Serializable
Thrown (or explicitly constructed and set on an
Exchange) to signal that the current exchange should be
rolled back by the error handler.
When a route uses the rollback() DSL step or a Processor throws this exception, the Camel error
handler treats it as an intentional rollback rather than an unexpected failure. Transactional resources enlisted in
the exchange's unit of work will be rolled back accordingly.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRollbackExchangeException(String message, Exchange exchange) RollbackExchangeException(String message, Exchange exchange, Throwable cause) RollbackExchangeException(Exchange exchange) RollbackExchangeException(Exchange exchange, Throwable cause) -
Method Summary
Methods inherited from class CamelExchangeException
createExceptionMessage, getExchangeMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RollbackExchangeException
- Parameters:
exchange- the exchange that is being rolled back
-
RollbackExchangeException
-
RollbackExchangeException
-
RollbackExchangeException
-