Package org.apache.camel
Class InvalidPayloadException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.camel.CamelException
org.apache.camel.CamelExchangeException
org.apache.camel.InvalidPayloadException
- All Implemented Interfaces:
Serializable
Is thrown if the payload from the exchange could not be retrieved because of being null, wrong class type etc.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidPayloadException
(Exchange exchange, Class<?> type) InvalidPayloadException
(Exchange exchange, Class<?> type, Message message) InvalidPayloadException
(Exchange exchange, Class<?> type, Message message, Throwable cause) -
Method Summary
Methods inherited from class org.apache.camel.CamelExchangeException
createExceptionMessage, getExchange
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidPayloadException
-
InvalidPayloadException
-
InvalidPayloadException
-
-
Method Details
-
getType
The expected type of the body
-