org.apache.camel
Class NoTypeConversionAvailableException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.camel.RuntimeCamelException
                  extended by org.apache.camel.NoTypeConversionAvailableException
All Implemented Interfaces:
Serializable

public class NoTypeConversionAvailableException
extends RuntimeCamelException

An exception thrown if a value could not be converted to the required type

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

Constructor Summary
NoTypeConversionAvailableException(Object value, Class type)
           
 
Method Summary
 Class getType()
          Returns the required type
 Object getValue()
          Returns the value which could not be converted
 
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

NoTypeConversionAvailableException

public NoTypeConversionAvailableException(Object value,
                                          Class type)
Method Detail

getValue

public Object getValue()
Returns the value which could not be converted

Returns:
the value that could not be converted

getType

public Class getType()
Returns the required type

Returns:
the required type


Copyright © 2007 Apache Software Foundation. All Rights Reserved.