Object
Throwable
Exception
FactoryException
NoSuchIdentifierException
NoSuchAuthorityCodeException
- All Implemented Interfaces:
Serializable
Thrown when an authority factory cannot find the requested authority code.
This is a specialization of
NoSuchIdentifierException
with the identifier separated in its authority
and code components.- Since:
- 1.0
- See Also:
-
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.NoSuchAuthorityCodeException
(String message, String authority, String code, String identifier, Throwable cause) Constructs an exception with the specified detail message, authority, code, identifier and error cause. -
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
-
Constructor Details
-
NoSuchAuthorityCodeException
Constructs an exception with the specified detail message and authority code. All arguments accept thenull
value.- Parameters:
message
- the detail message, 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. All arguments accept thenull
value.- Parameters:
message
- the detail message, 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.
-
NoSuchAuthorityCodeException
public NoSuchAuthorityCodeException(String message, String authority, String code, String identifier, Throwable cause) Constructs an exception with the specified detail message, authority, code, identifier and error cause. All arguments accept thenull
value.- Parameters:
message
- the detail message, 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.cause
- the cause, saved for later retrieval by theThrowable.getCause()
method.- Since:
- 3.1
-
-
Method Details
-
getAuthority
-
getAuthorityCode
Returns the invalid authority code.- Returns:
- the authority code, or
null
if unknown.
-