public class CamelExecutionException extends RuntimeExchangeException
Exchange
.
Is usually thrown to the caller when using the ProducerTemplate
to send messages to Camel.Constructor and Description |
---|
CamelExecutionException(String message,
Exchange exchange) |
CamelExecutionException(String message,
Exchange exchange,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
static CamelExecutionException |
wrapCamelExecutionException(Exchange exchange,
Throwable e)
Wraps the caused exception in a
CamelExecutionException if its not already such an exception. |
createMessage, getExchange
wrapRuntimeCamelException, wrapRuntimeException
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static CamelExecutionException wrapCamelExecutionException(Exchange exchange, Throwable e)
CamelExecutionException
if its not already such an exception.e
- the caused exceptionApache Camel