org.opengis.util
Class NoSuchIdentifierException

Object
  extended by Throwable
      extended by Exception
          extended by FactoryException
              extended by NoSuchIdentifierException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
NoSuchAuthorityCodeException

public class NoSuchIdentifierException
extends FactoryException

Thrown when an identifier provided to a factory method can not be found. The identifier is often provided by Identifier.getCode().

Example: This exception is thrown when a math transform as been requested with an unknown operation method identifier.

Since:
1.0
See Also:
MathTransformFactory.createParameterizedTransform(ParameterValueGroup), Serialized Form
Departure from OGC/ISO specification:
This exception is not part of the OGC specification.

Constructor Summary
NoSuchIdentifierException(String message, String identifier)
          Constructs an exception with the specified detail message and classification name.
 
Method Summary
 String getIdentifierCode()
          Returns the identifier code.
 
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

NoSuchIdentifierException

public NoSuchIdentifierException(String message,
                                 String identifier)
Constructs an exception with the specified detail message and classification name.

Parameters:
message - The detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
identifier - The identifier code.
Method Detail

getIdentifierCode

public String getIdentifierCode()
Returns the identifier code.

Returns:
The identifier code.


Copyright © 1994-2011 Open Geospatial Consortium. All Rights Reserved.