📄 interpreterexception.java
字号:
/**
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -