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 retrieve because of being null, wrong class type etc.
- Version:
- $Revision: 835240 $
- See Also:
- Serialized Form
Method Summary |
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 |
InvalidPayloadException
public InvalidPayloadException(Exchange exchange,
Class<?> type)
InvalidPayloadException
public InvalidPayloadException(Exchange exchange,
Class<?> type,
Message message)
InvalidPayloadException
public InvalidPayloadException(Exchange exchange,
Class<?> type,
Message message,
Throwable cause)
getType
public Class<?> getType()
- The expected type of the body
Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.