nosuchenumerationexception.java

来自「GEo 地理操作源代码」· Java 代码 · 共 47 行

JAVA
47
字号
/************************************************************************************************** ** ** $Id: NoSuchEnumerationException.java,v 1.2 2004/03/02 03:14:42 gregreynolds Exp $ ** ** $Source: /cvsroot/geoapi/src/org/opengis/util/NoSuchEnumerationException.java,v $ ** ** Copyright (C) 2003 Open GIS Consortium, Inc. All Rights Reserved. http://www.opengis.org/Legal/ ** *************************************************************************************************/package org.opengis.util;/** * Exception that is thrown when an invalid enumeration lookup is performed * in the {@link SimpleEnumerationType} class. * * @author <A HREF="http://www.opengis.org">OpenGIS&reg; consortium</A> * @version $Revision: 1.2 $, $Date: 2004/03/02 03:14:42 $ */public class NoSuchEnumerationException extends Exception {    /**     * The invalid value.     */    private final int value;        /**     * Constructs an exception with the given invalid value.     *     * @param value The invalid value.     * @revisit Localize the error message.     */    public NoSuchEnumerationException(final int value) {        super("No enumeration exists for the value " + value);        this.value = value;    }        /**     * Returns the invalid value.     *     * @return the invalid value.     */    public int getValue() {        return value;    }}

⌨️ 快捷键说明

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