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
public class CamelExecutionException extends RuntimeExchangeException
Exception occurred during execution/processing of anExchange
. Is usually thrown to the caller when using theProducerTemplate
to send messages to Camel.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CamelExecutionException(String message, Exchange exchange)
CamelExecutionException(String message, Exchange exchange, Throwable cause)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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
-
-
-
-
Method Detail
-
wrapCamelExecutionException
public static CamelExecutionException wrapCamelExecutionException(Exchange exchange, Throwable e)
Wraps the caused exception in aCamelExecutionException
if its not already such an exception.- Parameters:
e
- the caused exception- Returns:
- the wrapper exception
-
-