Package org.geotools.api.referencing
Class FactoryException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FactoryNotFoundException
,MissingInfoException
,NoSuchAuthorityCodeException
,NoSuchIdentifierException
,OperationNotFoundException
Thrown when a factory can't create an instance of the requested object. It may be a failure to
create a datum, a
coordinate system, a
reference system or a
coordinate operation.
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
or SQLException
), then this cause should be specified.
- Since:
- GeoAPI 1.0
- Author:
- Martin Desruisseaux (IRD)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct an exception with no detail message.FactoryException
(Exception cause) Construct an exception with the specified cause.FactoryException
(String message) Construct an exception with the specified detail message.FactoryException
(String message, Throwable cause) Construct an exception with the specified detail message and cause. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FactoryException
public FactoryException()Construct an exception with no detail message. -
FactoryException
Construct 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
Construct an exception with the specified cause. The detail message is copied from the cause localized message.- Parameters:
cause
- The cause for this exception. The cause is saved for later retrieval by theThrowable.getCause()
method.
-
FactoryException
Construct 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.
-