public class UnavailableFactoryException extends MissingFactoryResourceException
org.apache.sis.referencing.factory.epsg.EPSGFactoryhas no connection to an EPSG database.
MissingFactoryResourceExceptionmeans that at least one particular object can not be created, but other objects may be okay.
|Constructor and Description|
Construct an exception with no detail message.
Construct an exception with the specified detail message.
Construct an exception with the specified detail message and cause.
|Modifier and Type||Method and Description|
Returns the factory which has been found unavailable, or
Specifies which factory is unavailable.
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public UnavailableFactoryException(String message)
message- The detail message. The detail message is saved for later retrieval by the
public void setUnavailableFactory(AuthorityFactory factory)
EPSGFactorymay have been successfully created with a valid
DataSource. But the call to
DataSource.getConnection()happens only later (the first time that user invokes a method requiring a search in the database). In case of failure to connect to the database, user may discover late that the factory is actually unavailable. User may want to be informed about which factory is unavailable, for example in order to remove it from the list of factory managed by
factory- The factory which is unavailable.
Copyright © 2010–2016 The Apache Software Foundation. All rights reserved.