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
public class InvalidPayloadException extends CamelExchangeException
Is thrown if the payload from the exchange could not be retrieved because of being null, wrong class type etc.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidPayloadException(Exchange exchange, Class<?> type)
InvalidPayloadException(Exchange exchange, Class<?> type, Message message)
InvalidPayloadException(Exchange exchange, Class<?> type, Message message, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>
getType()
The expected type of the body-
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
-
-