Class InvalidPayloadRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.camel.RuntimeCamelException
org.apache.camel.RuntimeExchangeException
org.apache.camel.InvalidPayloadRuntimeException
- All Implemented Interfaces:
Serializable
Unchecked variant of
InvalidPayloadException, thrown when the body of a Message cannot be converted
to the expected type.
Used in contexts where a checked exception is not permitted, such as inside a Processor that calls
Message.getMandatoryBody(Class).- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidPayloadRuntimeException(Exchange exchange, Class<?> type) InvalidPayloadRuntimeException(Exchange exchange, Class<?> type, Throwable cause) InvalidPayloadRuntimeException(Exchange exchange, Class<?> type, Message message) InvalidPayloadRuntimeException(Exchange exchange, Class<?> type, Message message, Throwable cause) -
Method Summary
Methods inherited from class RuntimeExchangeException
createMessage, getExchangeMethods 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
-
InvalidPayloadRuntimeException
-
InvalidPayloadRuntimeException
-
InvalidPayloadRuntimeException
-
InvalidPayloadRuntimeException
-
-
Method Details
-
getType
The expected type of the body
-