Package org.apache.camel
Class NoTypeConversionAvailableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.camel.CamelException
org.apache.camel.NoTypeConversionAvailableException
- All Implemented Interfaces:
Serializable
An exception thrown if a value could not be converted to the required type
- See Also:
-
Constructor Summary
ConstructorDescriptionNoTypeConversionAvailableException
(Object value, Class<?> type) NoTypeConversionAvailableException
(Object value, Class<?> type, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionstatic String
createMessage
(Object value, Class<?> type) Returns an error message for no type converter available.static String
createMessage
(Object value, Class<?> type, Throwable cause) Returns an error message for no type converter available with the cause.Class<?>
Returns the required from type.Class<?>
Returns the required to typegetValue()
Returns the value which could not be convertedMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoTypeConversionAvailableException
-
NoTypeConversionAvailableException
-
-
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 no type converter available. -
createMessage
Returns an error message for no type converter available with the cause.
-