datatypeexception.java

来自「用applet实现很多应用小程序」· Java 代码 · 共 53 行

JAVA
53
字号
package prefuse.data;

/**
 * Exception indicating an incompatible data type assignment.
 * 
 * @author <a href="http://jheer.org">jeffrey heer</a>
 */
public class DataTypeException extends RuntimeException {

    /**
     * Create a new DataTypeException.
     */
    public DataTypeException() {
        super();
    }

    /**
     * Create a new DataTypeException.
     * @param message a descriptive error message
     * @param cause a Throwable (e.g., error or exception) that was the cause
     * for this exception being thrown
     */
    public DataTypeException(String message, Throwable cause) {
        super(message, cause);
    }

    /**
     * Create a new DataTypeException.
     * @param message a descriptive error message
     */
    public DataTypeException(String message) {
        super(message);
    }

    /**
     * Create a new DataTypeException.
     * @param cause a Throwable (e.g., error or exception) that was the cause
     * for this exception being thrown
     */
    public DataTypeException(Throwable cause) {
        super(cause);
    }
    
    /**
     * Create a new DataTypeException.
     * @param type the incompatible data type
     */
    public DataTypeException(Class type) {
        super("Type "+type.getName()+" not supported.");
    }
    
} // end of class DataTypeException

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?