fileformatexception.java

来自「用于multivariate时间序列分类」· Java 代码 · 共 39 行

JAVA
39
字号
/**  * Occurs when one of the input files has an incorrect format.   * It specified the file name, the StreamTokenizer, and the error.   *   * @author Waleed Kadous  * @version $Id: FileFormatException.java,v 1.1.1.1 2002/06/28 07:36:16 waleed Exp $  */package tclass;   import java.io.*; public class FileFormatException extends Exception {        public FileFormatException(){	super();    }        public FileFormatException(StreamTokenizer tokstrm, String expected){	super("On line " + tokstrm.lineno() + " Got: "+tokstrm.toString() +			 " Was expecting: "+ expected);    }    public FileFormatException(String filename, StreamTokenizer tokstrm, String expected){         super("In file \"" + filename + "\" on line " + tokstrm.lineno() + " Got: "+tokstrm.toString() +                          " Was expecting: "+ expected);     }     public FileFormatException(String filename, StreamTokenizer tokstrm, 			       InvalidParameterException ipex){	super("In file \"" + filename + "\" on line " + tokstrm.lineno() + 	      "Invalid Parameters " + ipex.toString());     }    public FileFormatException(String error){	super(error);    }    }    

⌨️ 快捷键说明

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