Package org.opengis.util
Class FactoryException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.opengis.util.FactoryException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
NoSuchIdentifierException
,OperationNotFoundException
public class FactoryException extends java.lang.Exception
Thrown when a factory can't create an instance of the requested object.If the failure is caused by an illegal authority code, then the actual exception should be
NoSuchAuthorityCodeException
. Otherwise, if the failure is caused by some error in the underlying database (e.g.IOException
orSQLException
), then the cause shall be specified to the constructor.- Since:
- 1.0
- Version:
- 3.0
- See Also:
CoordinateOperationFactory
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
Serial number for inter-operability with different versions.
-
Constructor Summary
Constructors Constructor Description FactoryException()
Construct an exception with no detail message.FactoryException(java.lang.String message)
Constructs an exception with the specified detail message.FactoryException(java.lang.String message, java.lang.Throwable cause)
Constructs an exception with the specified detail message and cause.FactoryException(java.lang.Throwable cause)
Constructs an exception with the specified cause.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Serial number for inter-operability with different versions.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FactoryException
public FactoryException()
Construct an exception with no detail message.
-
FactoryException
public FactoryException(java.lang.String message)
Constructs an exception with the specified detail message.- Parameters:
message
- The detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.
-
FactoryException
public FactoryException(java.lang.Throwable cause)
Constructs an exception with the specified cause.- Parameters:
cause
- The cause for this exception. The cause is saved for later retrieval by theThrowable.getCause()
method.
-
FactoryException
public FactoryException(java.lang.String message, java.lang.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
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.
-
-