org.geotools.factory
Class FactoryConfigurationError

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Error
          extended byorg.geotools.factory.FactoryConfigurationError
All Implemented Interfaces:
java.io.Serializable

Deprecated. This error was used by 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: Because of the above, a "factory not found" exception may not be caused by a JVM, compilation or packaging error. It is more similar to a MissingResourceException.

public class FactoryConfigurationError
extends java.lang.Error

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.

Version:
$Id: FactoryConfigurationError.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Ian Schneider
See Also:
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

FactoryConfigurationError

public FactoryConfigurationError(java.lang.String message)
Deprecated. 
Creates a new instance of FactoryConfigurationError

Parameters:
message - Informative statememt about what whent wrong

FactoryConfigurationError

public FactoryConfigurationError(java.lang.String message,
                                 java.lang.Throwable cause)
Deprecated. 
Creates a new instance of FactoryConfigurationError

Parameters:
message - Informative statememt about what whent wrong
cause - The origional exception which caused the problem


Copyright © GeoTools. All Rights Reserved.