syntaxexception.java

来自「Java编写后缀表达式计算器, 用于输出生成后缀表达式, 程序包含完整的Docu」· Java 代码 · 共 21 行

JAVA
21
字号
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package exception;/** * 语法异常 * @author zouhao */public class SyntaxException extends Exception{    public SyntaxException(int index,String type)    {        ExceptionContainer temp = ExceptionContainer.getinstance();        if(type.equalsIgnoreCase("miss operand"))            temp.add(index, "miss operand");        else if(type.equalsIgnoreCase("miss operator"))            temp.add(index, "miss operator");    }}

⌨️ 快捷键说明

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