Class InvalidConversionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.juneau.commons.conversion.InvalidConversionException
- All Implemented Interfaces:
Serializable
Thrown by
Converter.to(Object, Class) when no conversion path exists between two types.
This is an unchecked exception. Callers that are uncertain whether a conversion is possible should
call Converter.canConvert(Class, Class) first, or catch this exception and handle accordingly.
Example:
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidConversionException
Constructor.- Parameters:
inType- The runtime type of the input object.outType- The target output type.
-