org.opengis.parameter
Class ParameterNotFoundException

Object
  extended by Throwable
      extended by Exception
          extended by RuntimeException
              extended by IllegalArgumentException
                  extended by ParameterNotFoundException
All Implemented Interfaces:
Serializable

public class ParameterNotFoundException
extends IllegalArgumentException

Thrown when a required parameter was not found in a parameter group.

Since:
GeoAPI 1.0
Author:
Martin Desruisseaux (IRD)
See Also:
ParameterDescriptorGroup.descriptor(java.lang.String), ParameterValueGroup.parameter(java.lang.String), Serialized Form

Constructor Summary
ParameterNotFoundException(String message, String parameterName)
          Creates an exception with the specified message and parameter name.
 
Method Summary
 String getParameterName()
          Returns the name of the parameter which was required but not found.
 
Methods inherited from class Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParameterNotFoundException

public ParameterNotFoundException(String message,
                                  String parameterName)
Creates an exception with the specified message and parameter name.

Parameters:
message - The detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
parameterName - The name of the parameter which was required but not found.
Method Detail

getParameterName

public String getParameterName()
Returns the name of the parameter which was required but not found.

Returns:
The required parameter name.


Copyright © 1996-2014 Geotools. All Rights Reserved.