01: package prefuse.data;
02:
03: /**
04: * Exception indicating an incompatible data type assignment.
05: *
06: * @author <a href="http://jheer.org">jeffrey heer</a>
07: */
08: public class DataTypeException extends RuntimeException {
09:
10: /**
11: * Create a new DataTypeException.
12: */
13: public DataTypeException() {
14: super ();
15: }
16:
17: /**
18: * Create a new DataTypeException.
19: * @param message a descriptive error message
20: * @param cause a Throwable (e.g., error or exception) that was the cause
21: * for this exception being thrown
22: */
23: public DataTypeException(String message, Throwable cause) {
24: super (message, cause);
25: }
26:
27: /**
28: * Create a new DataTypeException.
29: * @param message a descriptive error message
30: */
31: public DataTypeException(String message) {
32: super (message);
33: }
34:
35: /**
36: * Create a new DataTypeException.
37: * @param cause a Throwable (e.g., error or exception) that was the cause
38: * for this exception being thrown
39: */
40: public DataTypeException(Throwable cause) {
41: super (cause);
42: }
43:
44: /**
45: * Create a new DataTypeException.
46: * @param type the incompatible data type
47: */
48: public DataTypeException(Class type) {
49: super ("Type " + type.getName() + " not supported.");
50: }
51:
52: } // end of class DataTypeException
|