Class RuntimeExchangeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.camel.RuntimeCamelException
org.apache.camel.RuntimeExchangeException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CamelExecutionException, InvalidPayloadRuntimeException
Unchecked base exception carrying the
Exchange whose processing triggered the failure.
This is the unchecked counterpart of CamelExchangeException and is the base for exceptions such as
InvalidPayloadRuntimeException that are thrown in contexts where a checked exception is not permitted.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRuntimeExchangeException(String message, @Nullable Exchange exchange) RuntimeExchangeException(String message, @Nullable Exchange exchange, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringcreateMessage(String message, @Nullable Exchange exchange) @Nullable ExchangeReturns the exchange which caused the exceptionMethods inherited from class RuntimeCamelException
wrapRuntimeCamelException, wrapRuntimeExceptionMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RuntimeExchangeException
-
RuntimeExchangeException
-
-
Method Details
-
getExchange
Returns the exchange which caused the exception Can be null -
createMessage
-