- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NoSuchIdentifierException
,OperationNotFoundException
,UnimplementedServiceException
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 NoSuchAuthorityCodeException
. Otherwise, if the failure
is caused by some error in the underlying database (e.g. IOException
or SQLException
),
then the cause should be specified to the constructor.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorDescriptionConstruct an exception with no detail message.FactoryException
(String message) Constructs an exception with the specified detail message.FactoryException
(String message, Throwable cause) Constructs an exception with the specified detail message and cause.FactoryException
(Throwable cause) Constructs an exception with the specified cause. -
Method Summary
Methods inherited from class java.lang.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
Constructs an exception with the specified detail message.- Parameters:
message
- the detail message, saved for later retrieval by theThrowable.getMessage()
method.
-
FactoryException
Constructs an exception with the specified cause.- Parameters:
cause
- the cause, saved for later retrieval by theThrowable.getCause()
method.
-
FactoryException
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, saved for later retrieval by theThrowable.getMessage()
method.cause
- the cause, saved for later retrieval by theThrowable.getCause()
method.
-