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:
Defined in the sis-referencing module
- 
Constructor SummaryConstructorsConstructorDescriptionConstruct 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 SummaryModifier and TypeMethodDescriptionReturns the factory which has been found unavailable, ornullif unspecified.voidsetUnavailableFactory(AuthorityFactory factory) Specifies which factory is unavailable.Methods inherited from class ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
UnavailableFactoryExceptionpublic UnavailableFactoryException()Construct an exception with no detail message.
- 
UnavailableFactoryExceptionConstruct an exception with the specified detail message.- Parameters:
- message- the detail message. The detail message is saved for later retrieval by the- Throwable.getMessage()method.
 
- 
UnavailableFactoryExceptionConstruct an exception with the specified detail message and cause. The cause is the exception thrown in the underlying database (e.g.IOExceptionorSQLException).- Parameters:
- message- the detail message. The detail message is saved for later retrieval by the- Throwable.getMessage()method.
- cause- the cause for this exception. The cause is saved for later retrieval by the- Throwable.getCause()method.
 
 
- 
- 
Method Details