Package org.geotools.api.referencing
Class NoSuchAuthorityCodeException
Object
Throwable
Exception
FactoryException
NoSuchAuthorityCodeException
- All Implemented Interfaces:
Serializable
Thrown when an authority factory can't find the requested authority code.
- Since:
- GeoAPI 1.0
- Author:
- Martin Desruisseaux (IRD)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNoSuchAuthorityCodeException
(String message, String authority, String code) Constructs an exception with the specified detail message and authority code. -
Method Summary
Modifier and TypeMethodDescriptionReturns the authority.Returns the invalid authority code.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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.code
- The invalid authority code.
-
-
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.
-