Package org.opengis.referencing
Class NoSuchAuthorityCodeException
- Object
-
- Throwable
-
- Exception
-
- FactoryException
-
- NoSuchIdentifierException
-
- NoSuchAuthorityCodeException
-
- All Implemented Interfaces:
Serializable
public class NoSuchAuthorityCodeException extends NoSuchIdentifierException
Thrown when an authority factory can not find the requested authority code.- Since:
- 1.0
- See Also:
CRSAuthorityFactory
,CSAuthorityFactory
,DatumAuthorityFactory
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description 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
Modifier and Type Method Description String
getAuthority()
Returns the authority.String
getAuthorityCode()
Returns the invalid authority code.-
Methods inherited from class NoSuchIdentifierException
getIdentifierCode
-
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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, 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, 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.
-
-