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
Exception when failing during type conversion.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
createMessage
(Object value, Class<?> type, Throwable cause) Returns an error message for type conversion failed.Class<?>
Returns the required from type.Class<?>
Returns the required to typegetValue()
Returns the value which could not be convertedMethods 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
-
Constructor Details
-
TypeConversionException
-
-
Method Details
-
getValue
Returns the value which could not be converted -
getToType
Returns the required to type -
getFromType
Returns the required from type. Returns null if the provided value was null. -
createMessage
Returns an error message for type conversion failed.
-