Package org.apache.camel
Class CamelExecutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.camel.RuntimeCamelException
org.apache.camel.RuntimeExchangeException
org.apache.camel.CamelExecutionException
- All Implemented Interfaces:
Serializable
Exception occurred during execution/processing of an
Exchange
.
Is usually thrown to the caller when using the ProducerTemplate
to send messages to Camel.- See Also:
-
Constructor Summary
ConstructorDescriptionCamelExecutionException
(String message, Exchange exchange) CamelExecutionException
(String message, Exchange exchange, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionstatic CamelExecutionException
wrapCamelExecutionException
(Exchange exchange, Throwable e) Wraps the caused exception in aCamelExecutionException
if its not already such an exception.Methods inherited from class org.apache.camel.RuntimeExchangeException
createMessage, getExchange
Methods inherited from class org.apache.camel.RuntimeCamelException
wrapRuntimeCamelException, wrapRuntimeException
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CamelExecutionException
-
CamelExecutionException
-
-
Method Details
-
wrapCamelExecutionException
Wraps the caused exception in aCamelExecutionException
if its not already such an exception.- Parameters:
e
- the caused exception- Returns:
- the wrapper exception
-