|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.tmapi.core.TMAPIRuntimeException
Instances of this exception class should be thrown in cases
where there is an error in the underlying topic map processing
system or when integrity constraints are violated by a
TopicMapObject.remove()
operation.
This class implements the JDK 1.4 method getCause() which allows TMAPI exceptions to be integrated into the JDK 1.4 exception chaining mechanism while retaining compatibility with JDK versions prior to 1.4.
Constructor Summary | |
TMAPIRuntimeException(java.lang.String msg)
Constructs a new throwable with the specified detail message. |
|
TMAPIRuntimeException(java.lang.String msg,
java.lang.Throwable cause)
Constructs a new exception with the specified detail message and cause. |
|
TMAPIRuntimeException(java.lang.Throwable cause)
Constructs a new exception that wraps another exception. |
Method Summary | |
java.lang.Throwable |
getCause()
Returns the cause of this exception or null if the cause is nonexistent or unknown. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TMAPIRuntimeException(java.lang.String msg)
msg
- the detail message. This message is saved for later retrieval by the Throwable.getMessage()
method.public TMAPIRuntimeException(java.lang.String msg, java.lang.Throwable cause)
msg
- the detail message. This message is saved for later retrieval
by the Throwable.getMessage()
method.cause
- the throwable which caused this exception to be thrown.
This value is saved for later retrieval by the getCause()
method.public TMAPIRuntimeException(java.lang.Throwable cause)
cause
- the Throwable which caused this exception to be thrown.
This value is saved for later retrieval by the getCause()
method.Method Detail |
public java.lang.Throwable getCause()
null
if the cause is nonexistent or unknown.
(The cause is the throwable that caused this exception to get thrown.)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |