Class ModelConstraintException

  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:

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.

Kal Ahmed (
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
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 ModelConstraintException(TopicMapObject modifiedObject,
                                java.lang.String msg)
Method Detail


public TopicMapObject getModifiedObject()