org.tmapi.core
Class ModelConstraintException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.tmapi.core.TMAPIRuntimeException
                  extended by org.tmapi.core.ModelConstraintException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
IdentityConstraintException, TopicInUseException

public class ModelConstraintException
extends TMAPIRuntimeException

This exception is used to report Topic Maps - Data Model constraint violations.

Version:
$Rev: 33 $ - $Date: 2008-08-02 16:42:29 +0200 (Sa, 02 Aug 2008) $
Author:
The TMAPI Project
See Also:
Serialized Form

Constructor Summary
ModelConstraintException(Construct reporter, java.lang.String msg)
          Creates a new ModelConstraintException with the specified message.
 
Method Summary
 Construct getReporter()
          Returns the Construct which has thrown the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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(Construct reporter,
                                java.lang.String msg)
Creates a new ModelConstraintException with the specified message.

Parameters:
reporter - The construct which has thrown this exception.
msg - The detail message.
Method Detail

getReporter

public Construct getReporter()
Returns the Construct which has thrown the exception.

Returns:
The construct which has thrown the exception.