/************************************************************************************************** ** ** $Id: NoSuchEnumerationException.java,v 1.2 2006/07/13 06:28:31 poth Exp $ ** ** $Source: /home/deegree/jail/deegreerepository/deegree/src/org/opengis/util/Attic/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: 2006/07/13 06:28:31 $ */ 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; } } /* ******************************************************************** Changes to this class. What the people have been up to: $Log: NoSuchEnumerationException.java,v $ Revision 1.2 2006/07/13 06:28:31 poth comment footer added ********************************************************************** */