01: //$HeadURL: https://svn.wald.intevation.org/svn/deegree/base/trunk/src/org/deegree/datatypes/parameter/ParameterNotFoundException.java $
02: /*$************************************************************************************************
03: **
04: ** $Id: ParameterNotFoundException.java 9337 2007-12-27 12:31:11Z apoth $
05: **
06: ** $Source$
07: **
08: ** Copyright (C) 2003 Open GIS Consortium, Inc. All Rights Reserved. http://www.opengis.org/Legal/
09: **
10: *************************************************************************************************/
11: package org.deegree.datatypes.parameter;
12:
13: /**
14: * Thrown when a required parameter was not found in a
15: * {@linkplain OperationParameterGroupIm parameter group}.
16: *
17: * @author <A HREF="http://www.opengis.org">OpenGIS® consortium</A>
18: * @author last edited by: $Author: apoth $
19: *
20: * @version $Revision: 9337 $, $Date: 2007-12-27 04:31:11 -0800 (Thu, 27 Dec 2007) $
21: */
22: public class ParameterNotFoundException extends
23: IllegalArgumentException {
24: /**
25: * Serial number for interoperability with different versions.
26: */
27: private static final long serialVersionUID = -8074834945993975175L;
28:
29: /**
30: * The invalid parameter name.
31: */
32: private final String parameterName;
33:
34: /**
35: * Creates an exception with the specified message and parameter name.
36: *
37: * @param message
38: * The detail message. The detail message is saved for later retrieval by the
39: * {@link #getMessage()} method.
40: * @param parameterName
41: * The required parameter name.
42: */
43: public ParameterNotFoundException(String message,
44: String parameterName) {
45: super (message);
46: this .parameterName = parameterName;
47: }
48:
49: /**
50: * Returns the required parameter name.
51: *
52: * @return the required parameter name.
53: */
54: public String getParameterName() {
55: return parameterName;
56: }
57: }
|