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
public class NoTypeConversionAvailableException extends CamelException
An exception thrown if a value could not be converted to the required type- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NoTypeConversionAvailableException(Object value, Class<?> type)NoTypeConversionAvailableException(Object value, Class<?> type, Throwable cause)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringcreateMessage(Object value, Class<?> type)Returns an error message for no type converter available.static StringcreateMessage(Object value, Class<?> type, Throwable cause)Returns an error message for no type converter available with the cause.Class<?>getFromType()Returns the required from type.Class<?>getToType()Returns the required to typeObjectgetValue()Returns the value which could not be converted-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getValue
public Object getValue()
Returns the value which could not be converted
-
getToType
public Class<?> getToType()
Returns the required to type
-
getFromType
public Class<?> getFromType()
Returns the required from type. Returns null if the provided value was null.
-
createMessage
public static String createMessage(Object value, Class<?> type)
Returns an error message for no type converter available.
-
-