Package com.gengoai.conversion
Class TypeConversionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.gengoai.conversion.TypeConversionException
-
- All Implemented Interfaces:
Serializable
public class TypeConversionException extends Exception
Exception throw when unable to converter from a source to destination type.- Author:
- David B. Bracewell
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TypeConversionException(Object source, Type destType)
Instantiates a new Type conversion exception.TypeConversionException(Object source, Type destType, Throwable cause)
Instantiates a new Type conversion exception.TypeConversionException(String message)
Instantiates a new Type conversion exception.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
TypeConversionException
public TypeConversionException(Object source, Type destType)
Instantiates a new Type conversion exception.- Parameters:
source
- the source object (thing being converted)destType
- the destination type (the type being converted to)
-
TypeConversionException
public TypeConversionException(String message)
Instantiates a new Type conversion exception.- Parameters:
message
- the error message
-
TypeConversionException
public TypeConversionException(Object source, Type destType, Throwable cause)
Instantiates a new Type conversion exception.- Parameters:
source
- the source object (thing being converted)destType
- the destination type (the type being converted to)cause
- the exception causing the failed conversion
-
-