# Class InvalidParameterNameException

Object
Throwable
Exception
RuntimeException
IllegalArgumentException
InvalidParameterNameException

All Implemented Interfaces:
  `Serializable`

@UML(identifier="GC_InvalidParameterName", specification=OGC_01004) public class InvalidParameterNameException extends IllegalArgumentException
Thrown when an unexpected parameter was found in a parameter group.

Since:
  1.0
See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `InvalidParameterNameException(String message, String parameterName)`
  Creates an exception with the specified message and parameter name.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getParameterName()`
  Returns the invalid parameter name.

  ### Methods inherited from class Throwable

  `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### InvalidParameterNameException

    public InvalidParameterNameException(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 invalid parameter name.

- ## Method Details

  - ### getParameterName

    public String getParameterName()
    Returns the invalid parameter name.
    Returns:
      The name of the invalid parameter.