org.apache.camel
Class InvalidPayloadException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.camel.CamelException
              extended by org.apache.camel.CamelExchangeException
                  extended by 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: 16342 $
See Also:
Serialized Form

Constructor Summary
InvalidPayloadException(Exchange exchange, Class<?> type)
           
InvalidPayloadException(Exchange exchange, Class<?> type, Message message)
           
InvalidPayloadException(Exchange exchange, Class<?> type, Message message, Throwable cause)
           
 
Method Summary
 Class<?> getType()
          The expected type of the body
 
Methods inherited from class org.apache.camel.CamelExchangeException
getExchange
 
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
 

Constructor Detail

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)
Method Detail

getType

public Class<?> getType()
The expected type of the body



Apache CAMEL