Object
Throwable
Exception
FactoryException
NoSuchIdentifierException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NoSuchAuthorityCodeException
Thrown when an identifier provided to a factory method cannot be found.
The identifier may be provided by
IdentifiedObject.getName()
.
In the common case where the identifier is an "authority:code" pair,
the NoSuchAuthorityCodeException
specialization should be used.
Example: This exception is thrown when a math transform has been requested with an unknown operation method name.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorDescriptionNoSuchIdentifierException
(String message, String identifier) Constructs an exception with the specified detail message and identifier.NoSuchIdentifierException
(String message, String identifier, Throwable cause) Constructs an exception with the specified detail message, identifier and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoSuchIdentifierException
Constructs an exception with the specified detail message and identifier.- Parameters:
message
- the detail message, saved for later retrieval by theThrowable.getMessage()
method.identifier
- the identifier code which was not found.
-
NoSuchIdentifierException
Constructs an exception with the specified detail message, identifier and cause.- Parameters:
message
- the detail message, saved for later retrieval by theThrowable.getMessage()
method.identifier
- the identifier code which was not found.cause
- the cause, saved for later retrieval by theThrowable.getCause()
method.- Since:
- 3.1
-
-
Method Details
-
getIdentifierCode
-