/*$************************************************************************************************ ** ** $Id: InvalidParameterNameException.java,v 1.2 2006/07/13 06:28:31 poth Exp $ ** ** $Source: /home/deegree/jail/deegreerepository/deegree/src/org/opengis/parameter/Attic/InvalidParameterNameException.java,v $ ** ** Copyright (C) 2003 Open GIS Consortium, Inc. All Rights Reserved. http://www.opengis.org/Legal/ ** *************************************************************************************************/ package org.opengis.parameter; /** * Thrown when an invalid parameter name was requested in a * {@linkplain OperationParameterGroup parameter group}. * * @UML exception GC_InvalidParameterName * @author <A HREF="http://www.opengis.org">OpenGIS® consortium</A> * @version <A HREF="http://www.opengis.org/docs/01-004.pdf">Grid Coverage specification 1.0</A> * * @see OperationParameterGroup#getParameter * @see ParameterValueGroup#getValue */ public class InvalidParameterNameException extends IllegalArgumentException { /** * Serial number for interoperability with different versions. */ private static final long serialVersionUID = -8473266898408204803L; /** * The invalid parameter name. */ private final String parameterName; /** * Creates an exception with the specified message and parameter name. * * @param message The detail message. The detail message is saved for * later retrieval by the {@link #getMessage()} method. * @param parameterName The invalid parameter name. */ public InvalidParameterNameException(String message, String parameterName) { super(message); this.parameterName = parameterName; } /** * Returns the invalid parameter name. */ public String getParameterName() { return parameterName; } } /* ******************************************************************** Changes to this class. What the people have been up to: $Log: InvalidParameterNameException.java,v $ Revision 1.2 2006/07/13 06:28:31 poth comment footer added ********************************************************************** */