1 21 22 package org.dbunit.dataset.datatype; 23 24 25 29 public class TypeCastException extends DataTypeException 30 { 31 41 public TypeCastException(Throwable e) 42 { 43 super(e); 44 } 45 46 public TypeCastException(String msg, Throwable e) 47 { 48 super(msg, e); 49 } 50 51 public TypeCastException(Object value, DataType dataType) 52 { 53 super("Unable to typecast value <" + value + "> of type <" + 54 value.getClass().getName() + "> to " + dataType); 55 } 56 57 public TypeCastException(Object value, DataType dataType, Throwable e) 58 { 59 super("Error typecasting value <" + value + "> to " + dataType, e); 60 } 61 62 } 63 64 65 66 67 | Popular Tags |