org.tmapi.core
Class TopicInUseException

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
                      extended by org.tmapi.core.TopicInUseException
All Implemented Interfaces:
java.io.Serializable

public class TopicInUseException
extends ModelConstraintException

Thrown when an attempt is made to remove a Topic which is being used as a type, as a reifier, or as a role player in an association, or in a scope.

Version:
$Rev: 97 $ - $Date: 2009-02-06 17:25:36 +0100 (Fr, 06 Feb 2009) $
Author:
The TMAPI Project
See Also:
Serialized Form

Constructor Summary
TopicInUseException(Topic topic, java.lang.String msg)
          Creates a new TopicInUseException with the specified message.
 
Method Summary
 Topic 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

TopicInUseException

public TopicInUseException(Topic topic,
                           java.lang.String msg)
Creates a new TopicInUseException with the specified message.

Parameters:
topic - The topic which is not removable.
msg - The detail message.
Method Detail

getReporter

public Topic getReporter()
Description copied from class: ModelConstraintException
Returns the Construct which has thrown the exception.

Overrides:
getReporter in class ModelConstraintException
Returns:
The construct which has thrown the exception.