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:
- java.io.Serializable
public class InvalidPayloadException
- extends CamelExchangeException
Is thrown if the payload from the exchange could not be retrieve because of being null, wrong class type etc.
- Version:
- See Also:
- Serialized Form
Method Summary |
java.lang.Class<?> |
getType()
The expected type of the body |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InvalidPayloadException
public InvalidPayloadException(Exchange exchange,
java.lang.Class<?> type)
InvalidPayloadException
public InvalidPayloadException(Exchange exchange,
java.lang.Class<?> type,
Message message)
InvalidPayloadException
public InvalidPayloadException(Exchange exchange,
java.lang.Class<?> type,
Message message,
java.lang.Throwable cause)
getType
public java.lang.Class<?> getType()
- The expected type of the body
Apache CAMEL