Package org.dbunit.dataset.datatype
Class TypeCastException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.dbunit.DatabaseUnitException
org.dbunit.dataset.DataSetException
org.dbunit.dataset.datatype.DataTypeException
org.dbunit.dataset.datatype.TypeCastException
- All Implemented Interfaces:
Serializable
Signals that a value could not be cast to the Java type required by a
DataType.- Version:
- $Revision$
- Author:
- Manuel Laflamme
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTypeCastException(Object value, DataType dataType) Constructs aTypeCastExceptionfor the given value and target data type.TypeCastException(Object value, DataType dataType, Throwable e) Constructs aTypeCastExceptionfor the given value and target data type, with a cause.TypeCastException(String msg, Throwable e) Constructs aTypeCastExceptionwith the specified detail message and cause.Constructs aTypeCastExceptionwith the specified cause. -
Method Summary
Methods inherited from class org.dbunit.DatabaseUnitException
getExceptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TypeCastException
Constructs aTypeCastExceptionwith the specified cause.- Parameters:
e- the cause.
-
TypeCastException
Constructs aTypeCastExceptionwith the specified detail message and cause.- Parameters:
msg- the detail message.e- the cause.
-
TypeCastException
Constructs aTypeCastExceptionfor the given value and target data type.- Parameters:
value- the value that could not be cast.dataType- the target data type.
-
TypeCastException
Constructs aTypeCastExceptionfor the given value and target data type, with a cause.- Parameters:
value- the value that could not be cast.dataType- the target data type.e- the cause.
-