ptolemy.graph
Class GraphInvalidStateException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by ptolemy.kernel.util.KernelRuntimeException
                  extended by ptolemy.kernel.util.InvalidStateException
                      extended by ptolemy.graph.GraphInvalidStateException
All Implemented Interfaces:
java.io.Serializable

public class GraphInvalidStateException
extends InvalidStateException

Exception for graph invalid state action errors. This exception is thrown when an object has a state that is not permitted. This is a RuntimeException and thus need not be declared by a method.

Since:
Ptolemy II 8.0
Version:
$Id: GraphInvalidStateException.java 57044 2010-01-27 22:41:05Z cxh $
Author:
Mingyung Ko
See Also:
Serialized Form
Accepted Rating:
Red (ssb)
Proposed Rating:
Red (myko)

Constructor Summary
GraphInvalidStateException(java.lang.String message)
          Construct an exception with a detail message.
GraphInvalidStateException(java.lang.Throwable cause, java.lang.String detail)
          Construct an exception with a detail message that includes the name of the first argument, the cause and the third argument string.
 
Method Summary
 
Methods inherited from class ptolemy.kernel.util.KernelRuntimeException
_setCause, _setMessage, getCause, getMessage, getNameables, printStackTrace, printStackTrace, printStackTrace
 
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

GraphInvalidStateException

public GraphInvalidStateException(java.lang.String message)
Construct an exception with a detail message. This exception is thrown when an object has a state that is not permitted.

Parameters:
message - Detailed description of the error.

GraphInvalidStateException

public GraphInvalidStateException(java.lang.Throwable cause,
                                  java.lang.String detail)
Construct an exception with a detail message that includes the name of the first argument, the cause and the third argument string.

Parameters:
cause - The cause of this exception.
detail - The message.