org.tm4j.topicmap
Class TopicMapRuntimeException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.tm4j.topicmap.TopicMapRuntimeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ProviderTransactionException

public class TopicMapRuntimeException
extends java.lang.RuntimeException

Indicates that the engine encountered an unexpected condition at runtime.

See Also:
Serialized Form

Constructor Summary
TopicMapRuntimeException(java.lang.String msg)
          Creates an exception which does not wrap a nested error.
TopicMapRuntimeException(java.lang.String msg, java.lang.Throwable cause)
          Creates an exception which wraps a nested error.
TopicMapRuntimeException(java.lang.Throwable cause)
          Creates an exception which wraps a nested error.
 
Method Summary
 java.lang.Throwable getCause()
          Returns the nested error which this TopicMapException wraps.
 java.lang.String getMessage()
          Returns a displayable message for the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, 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

TopicMapRuntimeException

public TopicMapRuntimeException(java.lang.Throwable cause)
Creates an exception which wraps a nested error.

Parameters:
cause - The nested exception which is wrapped by this exception.

TopicMapRuntimeException

public TopicMapRuntimeException(java.lang.String msg,
                                java.lang.Throwable cause)
Creates an exception which wraps a nested error.

Parameters:
msg - The error message associated with this exception.
cause - The nested exception which is wrapped by this exception.

TopicMapRuntimeException

public TopicMapRuntimeException(java.lang.String msg)
Creates an exception which does not wrap a nested error.

Parameters:
msg - The error message associated with the exception.
Method Detail

getMessage

public java.lang.String getMessage()
Returns a displayable message for the exception. If this exception wraps a nested error, then the nested error's message is also shown.

Returns:
The message associated with the exception.

getCause

public java.lang.Throwable getCause()
Returns the nested error which this TopicMapException wraps.

Returns:
The wrapped exception. This may be null if this exception does not wrap a nested exception.