org.tm4j.topicmap
Class MergedTopicSubjectClashException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.tm4j.topicmap.TopicMapProcessingException
              extended byorg.tm4j.topicmap.MergedTopicSubjectClashException
All Implemented Interfaces:
java.io.Serializable

public class MergedTopicSubjectClashException
extends TopicMapProcessingException

Indicates that an attempt was made to merge two topics with different subjects.

Author:
Kal Ahmed
See Also:
Serialized Form

Constructor Summary
MergedTopicSubjectClashException(Topic t1, Topic t2)
          Constructs a new merged topic subject clash exception.
 
Method Summary
 Topic[] getTopics(Topic[] ret)
          Retrieves the two topics involved in the failed merge operation.
 
Methods inherited from class org.tm4j.topicmap.TopicMapProcessingException
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

MergedTopicSubjectClashException

public MergedTopicSubjectClashException(Topic t1,
                                        Topic t2)
Constructs a new merged topic subject clash exception.

Parameters:
t1 - the first topic included in the failed merge operation.
t2 - the other topic included in the failed merge operation.
Method Detail

getTopics

public Topic[] getTopics(Topic[] ret)
Retrieves the two topics involved in the failed merge operation.

Parameters:
ret - A placeholder array of topics to be filled with the two topics involved in the failed merge operation. Note that if this is null or an array holding less than two Topics, a new array will be created in its place.
Returns:
An array containing the two Topics involved in the failed merge operation.