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

Deprecated. will be removed in Camel 3.0

@Deprecated
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.

Version:
See Also:
Serialized Form

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

InvalidPayloadException

public InvalidPayloadException(Exchange exchange,
                               Class<?> type,
                               Message message)
Deprecated. 

InvalidPayloadException

public InvalidPayloadException(Exchange exchange,
                               Class<?> type,
                               Message message,
                               Throwable cause)
Deprecated. 
Method Detail

getType

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



Apache CAMEL