ptolemy.data.expr
Class UndefinedConstantOrIdentifierException

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.data.expr.UndefinedConstantOrIdentifierException
All Implemented Interfaces:
java.io.Serializable

public class UndefinedConstantOrIdentifierException
extends IllegalActionException

Thrown on an attempt to evaluate an expression that contains an unknown constant or identifier.

This exception is used to catch missing constants or identifiers during cut and paste operations by ParseTreeEvaluator.visitLeafNode(ptolemy.data.expr.ASTPtLeafNode).

Since:
Ptolemy II 6.1
Version:
$Id: UndefinedConstantOrIdentifierException.java 57040 2010-01-27 20:52:32Z cxh $
Author:
Christopher Brooks
See Also:
Serialized Form
Accepted Rating:
Red (cxh)
Proposed Rating:
Red (cxh)

Field Summary
private  java.lang.String _nodeName
          The name of the missing constant or identifier.
 
Constructor Summary
UndefinedConstantOrIdentifierException(java.lang.String nodeName)
          Constructs an Exception with a detail message that includes the name of the first argument.
 
Method Summary
 java.lang.String nodeName()
          Return the node name that caused the exception.
 
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
 

Field Detail

_nodeName

private java.lang.String _nodeName
The name of the missing constant or identifier.

Constructor Detail

UndefinedConstantOrIdentifierException

public UndefinedConstantOrIdentifierException(java.lang.String nodeName)
Constructs an Exception with a detail message that includes the name of the first argument.

Parameters:
nodeName - The name of the missing constant or identifier
Method Detail

nodeName

public java.lang.String nodeName()
Return the node name that caused the exception.

Returns:
the name of the unidentified constant or identifier that caused the exception.