org.opengis.referencing
Class NoSuchAuthorityCodeException

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

public class NoSuchAuthorityCodeException
extends NoSuchIdentifierException

Thrown when an authority factory can't find the requested authority code.

Since:
1.0
See Also:
CRSAuthorityFactory, CSAuthorityFactory, DatumAuthorityFactory, Serialized Form
Departure from OGC/ISO specification:
This exception is not part of the OGC specification.

Constructor Summary
NoSuchAuthorityCodeException(String message, String authority, String code)
          Constructs an exception with the specified detail message and authority code.
NoSuchAuthorityCodeException(String message, String authority, String code, String identifier)
          Constructs an exception with the specified detail message, authority code and identifier.
 
Method Summary
 String getAuthority()
          Returns the authority.
 String getAuthorityCode()
          Returns the invalid authority code.
 
Methods inherited from class NoSuchIdentifierException
getIdentifierCode
 
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

NoSuchAuthorityCodeException

public NoSuchAuthorityCodeException(String message,
                                    String authority,
                                    String code)
Constructs an exception with the specified detail message and authority code.

Parameters:
message - The detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
authority - The authority, saved for retrieval by the getAuthority() method.
code - The invalid authority code, saved for retrieval by the getAuthorityCode() method.

NoSuchAuthorityCodeException

public NoSuchAuthorityCodeException(String message,
                                    String authority,
                                    String code,
                                    String identifier)
Constructs an exception with the specified detail message, authority code and identifier. The identifier argument is optional. If omitted, then "authority:code" will be used.

Parameters:
message - The detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
authority - The authority, saved for retrieval by the getAuthority() method.
code - The invalid authority code, saved for retrieval by the getAuthorityCode() method.
identifier - The full identifier as a concatenation of the authority and the code, saved for retrieval by the NoSuchIdentifierException.getIdentifierCode() method.
Method Detail

getAuthority

public String getAuthority()
Returns the authority.

Returns:
The authority, or null if unknown.

getAuthorityCode

public String getAuthorityCode()
Returns the invalid authority code.

Returns:
The authority code, or null if unknown.


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