KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > prefuse > data > DataTypeException


1 package prefuse.data;
2
3 /**
4  * Exception indicating an incompatible data type assignment.
5  *
6  * @author <a HREF="http://jheer.org">jeffrey heer</a>
7  */

8 public class DataTypeException extends RuntimeException JavaDoc {
9
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 JavaDoc message, Throwable JavaDoc 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 JavaDoc 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 JavaDoc cause) {
41         super(cause);
42     }
43     
44     /**
45      * Create a new DataTypeException.
46      * @param type the incompatible data type
47      */

48     public DataTypeException(Class JavaDoc type) {
49         super("Type "+type.getName()+" not supported.");
50     }
51     
52 } // end of class DataTypeException
53
Popular Tags