Package org.opengis.referencing
Class NoSuchAuthorityCodeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.opengis.util.FactoryException
org.opengis.util.NoSuchIdentifierException
org.opengis.referencing.NoSuchAuthorityCodeException
- All Implemented Interfaces:
Serializable
Thrown when an authority factory can't find
the requested authority code.
- Since:
- 1.0
- Version:
- 3.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNoSuchAuthorityCodeException
(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
Modifier and TypeMethodDescriptionReturns the authority.Returns the invalid authority code.Methods inherited from class org.opengis.util.NoSuchIdentifierException
getIdentifierCode
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial number for inter-operability with different versions.- See Also:
-
authority
The authority. -
code
The invalid authority code.
-
-
Constructor Details
-
NoSuchAuthorityCodeException
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 theThrowable.getMessage()
method.authority
- The authority, saved for retrieval by thegetAuthority()
method.code
- The invalid authority code, saved for retrieval by thegetAuthorityCode()
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 theThrowable.getMessage()
method.authority
- The authority, saved for retrieval by thegetAuthority()
method.code
- The invalid authority code, saved for retrieval by thegetAuthorityCode()
method.identifier
- The full identifier as a concatenation of the authority and the code, saved for retrieval by theNoSuchIdentifierException.getIdentifierCode()
method.
-
-
Method Details
-
getAuthority
Returns the authority.- Returns:
- The authority, or
null
if unknown.
-
getAuthorityCode
Returns the invalid authority code.- Returns:
- The authority code, or
null
if unknown.
-