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