org.apache.camel
Class InvalidTypeException

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.InvalidTypeException
All Implemented Interfaces:
Serializable

public class InvalidTypeException
extends CamelExchangeException

Is thrown if type conversion failed.

Version:
$Revision: 560 $
See Also:
Serialized Form

Constructor Summary
InvalidTypeException(Exchange exchange, Object value, Class<?> type)
           
 
Method Summary
 Class<?> getType()
          The expected type of the value
 Object getValue()
          The value
 
Methods inherited from class org.apache.camel.CamelExchangeException
createMessage, 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

InvalidTypeException

public InvalidTypeException(Exchange exchange,
                            Object value,
                            Class<?> type)
Method Detail

getValue

public Object getValue()
The value


getType

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



Copyright © 2010 IONA Open Source Community. All Rights Reserved.