interpreterexception.java

来自「是有关解释器的.用JAVA编写.可以解释一般的JAVA程序.」· Java 代码 · 共 31 行

JAVA
31
字号
/**
 * This exceptions is generated for general errors during execution (e.g.
 * division by zero during runtime).
 * 
 * @see ParserException
 * @see ScannerException
 */
public class InterpreterException extends Exception {
    private String text;

    /**
     * Instantiates an InterpreterExeception with the given error string.
     * 
     * @param t
     *            the error description
     */
    InterpreterException(String t) {
        super("InterpreterException <" + t + ">" + ".");
        text = t;
    }

    /**
     * Returns the error description.
     * 
     * @return the error description
     */
    String text() {
        return text;
    }
}

⌨️ 快捷键说明

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