Package org.apache.camel
Class TypeConversionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.camel.RuntimeCamelException
-
- org.apache.camel.TypeConversionException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
StreamCacheException
public class TypeConversionException extends RuntimeCamelException
Exception when failing during type conversion.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TypeConversionException(Object value, Class<?> type, Throwable cause)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
createMessage(Object value, Class<?> type, Throwable cause)
Returns an error message for type conversion failed.Class<?>
getFromType()
Returns the required from type.Class<?>
getToType()
Returns the required to typeObject
getValue()
Returns the value which could not be converted-
Methods inherited from class org.apache.camel.RuntimeCamelException
wrapRuntimeCamelException, wrapRuntimeException
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-