storeclassversionexception.java

来自「很棒的web服务器源代码」· Java 代码 · 共 47 行

JAVA
47
字号
// StoreClassVersionException.java// $Id: StoreClassVersionException.java,v 1.2 2000/08/16 21:37:55 ylafon Exp $// (c) COPYRIGHT MIT and INRIA, 1996-1997.// Please first read the full copyright statement in file COPYRIGHT.htmlpackage org.w3c.tools.resources.store;/** * This is exception gets thrown if an invalid resource store is detected. */public class StoreClassVersionException extends Exception {    /**     * Version of the class that wanted to load the store.     */    int loader = -1;    /**     * Version of the class that saved the store.     */    int saver = -1;    /**     * Get the loader's class version.     * @return An integer version number.     */    public int getLoaderClassVersion() {	return loader;    }    /**     * Get the saver's class version.     * @return An integer version number.     */    public int getSaverClassVersion() {	return saver;    }    public StoreClassVersionException(int loader, int saver) {	super("invalid store class "+loader+" saved by "+saver);	this.loader = loader;	this.saver  = saver;    }}

⌨️ 快捷键说明

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