ptolemy.actor
Class InvariantViolationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ptolemy.kernel.util.KernelException
              extended by ptolemy.kernel.util.IllegalActionException
                  extended by ptolemy.actor.InvariantViolationException
All Implemented Interfaces:
java.io.Serializable

public class InvariantViolationException
extends IllegalActionException

Thrown when an invariant is violated.

Since:
Ptolemy II 4.0
Version:
$Id: InvariantViolationException.java 38797 2005-07-08 19:39:38Z cxh $
Author:
Haiyang Zheng
See Also:
Serialized Form
Accepted Rating:
Red (hyzheng)
Proposed Rating:
Red (hyzheng)

Constructor Summary
InvariantViolationException(Nameable object, java.lang.String detail)
          Construct an exception with a detail message that includes the name of the first argument.
InvariantViolationException(java.lang.String detail)
          Construct an exception with a detail message.
 
Method Summary
 
Methods inherited from class ptolemy.kernel.util.KernelException
_setCause, _setMessage, generateMessage, generateMessage, generateMessage, getCause, getFullName, getMessage, getName, getNameable1, getNameable2, printStackTrace, printStackTrace, printStackTrace, stackTraceToString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvariantViolationException

public InvariantViolationException(java.lang.String detail)
Construct an exception with a detail message.

Parameters:
detail - The message.

InvariantViolationException

public InvariantViolationException(Nameable object,
                                   java.lang.String detail)
Construct an exception with a detail message that includes the name of the first argument.

Parameters:
object - The object.
detail - The message.