org.tmapi.core
Class ModelConstraintException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.tmapi.core.TMAPIRuntimeException
                  extended byorg.tmapi.core.ModelConstraintException
All Implemented Interfaces:
java.io.Serializable

public class ModelConstraintException
extends TMAPIRuntimeException

Exception thrown when an attempt is made to modify a TopicMapObject in a way which violates a constraint of the currently enabled processor model.

Currently, this exception is only thrown by the method Topic.addSubjectLocator(org.tmapi.core.Locator) when the XTM 1.0 processing model is enabled and the topic already has one subjectLocator.

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

Constructor Summary
ModelConstraintException(TopicMapObject modifiedObject, java.lang.String msg)
           
 
Method Summary
 TopicMapObject getModifiedObject()
           
 
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

ModelConstraintException

public ModelConstraintException(TopicMapObject modifiedObject,
                                java.lang.String msg)
Method Detail

getModifiedObject

public TopicMapObject getModifiedObject()