Class UnavailableFactoryException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.opengis.util.FactoryException
org.apache.sis.referencing.factory.MissingFactoryResourceException
org.apache.sis.referencing.factory.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
- Version:
- 0.7
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.opengis.referencing.AuthorityFactory
The factory that cannot perform its work, ornull
if unknown.private static final long
Serial number for inter-operability with different versions. -
Constructor Summary
ConstructorsConstructorDescriptionConstruct 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 TypeMethodDescriptionorg.opengis.referencing.AuthorityFactory
Returns the factory which has been found unavailable, ornull
if unspecified.void
setUnavailableFactory
(org.opengis.referencing.AuthorityFactory factory) Specifies which factory is unavailable.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial number for inter-operability with different versions.- See Also:
-
factory
private org.opengis.referencing.AuthorityFactory factoryThe factory that cannot perform its work, ornull
if unknown.
-
-
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