org.tmapi.core
Class MergeException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.tmapi.core.TMAPIRuntimeException
                  extended byorg.tmapi.core.MergeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
SubjectLocatorClashException, TopicsMustMergeException

public class MergeException
extends TMAPIRuntimeException

The base class for exceptions related to merging of Topic or TopicMap instances. Applications should not raise an instance of this exception class, but should instead raise an instance of one of the derived classes.

In TMAPI 1.0, two subclasses of this exception are defiend.

The TopicsMustMergeException is only ever thrown by a processor with the automerge feature disabled. This exception indicates that a merge of two topics is required to maintain consistency with the standard Topic Maps Data Model.

The SubjectLocatorClashException is only ever thrown by a processor with the automerge feature enabled and with the XTM 1.0 model enabled. This exception indicates that the processor attempted to perform the merger of two Topics as required for consistency with the Topic Maps Data Model, but found that the merge could not be completed due to the XTM 1.0 constraint that a Topic can only have a single subjectLocator property value.

Author:
Kal Ahmed (kal@techquila.com)
See Also:
Serialized Form

Constructor Summary
protected MergeException(java.lang.String msg)
           
protected MergeException(java.lang.String msg, java.lang.Throwable cause)
           
protected MergeException(java.lang.Throwable cause)
           
 
Methods inherited from class org.tmapi.core.TMAPIRuntimeException
getCause
 
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

MergeException

protected MergeException(java.lang.Throwable cause)

MergeException

protected MergeException(java.lang.String msg)

MergeException

protected MergeException(java.lang.String msg,
                         java.lang.Throwable cause)