Module org.apache.sis.referencing
Class UnavailableFactoryException
Object
Throwable
Exception
FactoryException
MissingFactoryResourceException
UnavailableFactoryException
- All Implemented Interfaces:
Serializable
Thrown when a whole factory cannot be created because a resource is missing.
The most common case is when the
EPSGFactory
has no connection to an EPSG database.
Relationship with other exceptions
This exception means that the whole factory is unusable. By contrast,MissingFactoryResourceException
means that at least one particular object
cannot be created, but other objects may be okay.- Since:
- 0.7
- See Also:
-
Constructor Summary
ConstructorDescriptionConstruct an exception with no detail message.UnavailableFactoryException
(String message) Construct an exception with the specified detail message.UnavailableFactoryException
(String message, Throwable cause) Construct an exception with the specified detail message and cause. -
Method Summary
Modifier and TypeMethodDescriptionReturns the factory which has been found unavailable, ornull
if unspecified.void
setUnavailableFactory
(AuthorityFactory factory) Specifies which factory is unavailable.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnavailableFactoryException
public UnavailableFactoryException()Construct an exception with no detail message. -
UnavailableFactoryException
Construct an exception with the specified detail message.- Parameters:
message
- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.
-
UnavailableFactoryException
Construct an exception with the specified detail message and cause. The cause is the exception thrown in the underlying database (e.g.IOException
orSQLException
).- Parameters:
message
- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.cause
- the cause for this exception. The cause is saved for later retrieval by theThrowable.getCause()
method.
-
-
Method Details