public class UnavailableFactoryException extends MissingFactoryResourceException
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–2017 The Apache Software Foundation. All rights reserved.