Package org.opengis.parameter
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. For example this exception may be thrown at construction time if the same parameter name is used twice.- Since:
- 1.0
- See Also:
ParameterNotFoundException
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidParameterNameException(String message, String parameterName)
Creates an exception with the specified message and parameter name.InvalidParameterNameException(String message, Throwable cause, String parameterName)
Creates an exception with the specified message, cause 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
-
-
-
-
Constructor Detail
-
InvalidParameterNameException
public InvalidParameterNameException(String message, String parameterName)
Creates an exception with the specified message and parameter name.- Parameters:
message
- the detail message, saved for later retrieval by theThrowable.getMessage()
method.parameterName
- the invalid parameter name.
-
InvalidParameterNameException
public InvalidParameterNameException(String message, Throwable cause, String parameterName)
Creates an exception with the specified message, cause and parameter name.- Parameters:
message
- the detail message, saved for later retrieval by theThrowable.getMessage()
method.cause
- the cause, saved for later retrieval by theThrowable.getCause()
method.parameterName
- the invalid parameter name.- Since:
- 3.1
-
-
Method Detail
-
getParameterName
public String getParameterName()
Returns the invalid parameter name.- Returns:
- the name of the invalid parameter.
-
-