notio
Class OperationException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--notio.OperationException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- ConceptRemoveException, ConceptReplaceException, CorefAddException, CorefRemoveException, InvalidDefiningConceptException, JoinException, NameAddException, RestrictionException, TranslationException, TypeExpansionException
- public class OperationException
- extends java.lang.Exception
The base Notio operation exception class.
This exception class allows other throwables to
be embedded in it. This provides a clean means
for implementation-specific throwables to be
thrown from Notio routines.
- See Also:
- Serialized Form
Constructor Summary |
OperationException(java.lang.String message)
Constructs an exception with the specified message. |
OperationException(java.lang.String message,
java.lang.Throwable newSubThrowable)
Constructs an exception with the specified message and sub-throwable. |
Method Summary |
java.lang.Throwable |
getSubThrowable()
This method retrieves arbitrary throwables embedded inside
OperationExceptions and thrown along with them. |
void |
setSubThrowable(java.lang.Throwable newSubThrowable)
This method allows arbitrary throwables to be embedded inside
OperationExceptions and thrown along with them. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OperationException
public OperationException(java.lang.String message)
- Constructs an exception with the specified message.
- Parameters:
message
- the details of the exception.
OperationException
public OperationException(java.lang.String message,
java.lang.Throwable newSubThrowable)
- Constructs an exception with the specified message and sub-throwable.
- Parameters:
message
- the details of the exception.newSubThrowable
- the sub-throwable to be embedded in this
OperationException.
setSubThrowable
public void setSubThrowable(java.lang.Throwable newSubThrowable)
- This method allows arbitrary throwables to be embedded inside
OperationExceptions and thrown along with them. The embedded
throwables can give further details of what happened or be used to pass
implementation-specific throwables through the standard Notio API.
This method will replace any existing sub-throwable.
- Parameters:
newSubThrowable
- the sub-throwable to be embedded in this
OperationException.
getSubThrowable
public java.lang.Throwable getSubThrowable()
- This method retrieves arbitrary throwables embedded inside
OperationExceptions and thrown along with them. The embedded
throwables can give further details of what happened or be used to pass
implementation-specific throwables through the standard Notio API.
- Returns:
- the sub-throwable or null if none is present.
Copyright 1998-2001 Finnegan Southey