|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Error
org.geotools.factory.FactoryConfigurationError
FactoryFinder. The proposed replacement
(FactoryRegistry) uses an exception (FactoryRegistryException) instead of
an error. There is two reasons why we switched back to an exception instead of an error:
FactoryFinder, FactoryRegistry do not expects
a default implementation to be specified.FactoryRegistry can accepts an optional set of user-provided Hints.
Those hints may reduces the set of acceptable factories.MissingResourceException.
Deadly error. Usually if this is thrown, an application built upon geotools
will not be able to function. I make this an error so that the standard bad code
try { somthingRisky(); } catch (Exception e) {
logger.warning("something happened"); } will be subverted and the
error will grind the application to a halt, as it should.
Error,
Serialized Form| Constructor Summary | |
FactoryConfigurationError(java.lang.String message)
Deprecated. Creates a new instance of FactoryConfigurationError |
|
FactoryConfigurationError(java.lang.String message,
java.lang.Throwable cause)
Deprecated. Creates a new instance of FactoryConfigurationError |
|
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public FactoryConfigurationError(java.lang.String message)
message - Informative statememt about what whent wrong
public FactoryConfigurationError(java.lang.String message,
java.lang.Throwable cause)
message - Informative statememt about what whent wrongcause - The origional exception which caused the problem
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||