org.apache.camel
public class: NoTypeConversionAvailableException [javadoc |
source]
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.camel.RuntimeCamelException
org.apache.camel.NoTypeConversionAvailableException
All Implemented Interfaces:
Serializable
An exception thrown if a value could not be converted to the required type
- version:
$
- Revision: 698836 $
Constructor: |
public NoTypeConversionAvailableException(Object value,
Class type) {
super("No type converter available to convert from type: " + (value != null ? value.getClass() : null)
+ " to the required type: " + type.getCanonicalName() + " with value " + value);
this.value = value;
this.type = type;
}
|
Methods from java.lang.Throwable: |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from org.apache.camel.NoTypeConversionAvailableException Detail: |
public Class getFromType() {
if (value != null) {
return value.getClass();
} else {
return null;
}
}
Returns the required from type.
Returns null if the provided value was null. |
public Class getType() {
return type;
}
Returns the required to type |
public Object getValue() {
return value;
}
Returns the value which could not be converted |