Class FactoryException

Object
Throwable
Exception
FactoryException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Factory­Data­Exception, Invalid­Geodetic­Parameter­Exception, Missing­Factory­Resource­Exception, No­Such­Identifier­Exception, Operation­Not­Found­Exception

public class FactoryException extends Exception
Thrown when a factory cannot create an instance of the requested object.

If the failure is caused by an illegal authority code, then the actual exception should be No­Such­Authority­Code­Exception. Otherwise, if the failure is caused by some error in the underlying database (e.g. IOException or SQLException), then the cause shall be specified to the constructor.

Since:
1.0
See Also:
  • Constructor Details

    • FactoryException

      public FactoryException()
      Construct an exception with no detail message.
    • FactoryException

      public FactoryException(String message)
      Constructs an exception with the specified detail message.
      Parameters:
      message - The detail message. The detail message is saved for later retrieval by the Throwable​.get­Message() method.
    • FactoryException

      public FactoryException(Throwable cause)
      Constructs an exception with the specified cause.
      Parameters:
      cause - The cause for this exception. The cause is saved for later retrieval by the Throwable​.get­Cause() method.
    • FactoryException

      public FactoryException(String message, Throwable cause)
      Constructs an exception with the specified detail message and cause. The cause is the exception thrown in the underlying database (e.g. IOException or SQLException).
      Parameters:
      message - The detail message. The detail message is saved for later retrieval by the Throwable​.get­Message() method.
      cause - The cause for this exception. The cause is saved for later retrieval by the Throwable​.get­Cause() method.