ptolemy.data.expr
Class UndefinedConstantOrIdentifierException
java.lang.Object
java.lang.Throwable
java.lang.Exception
ptolemy.kernel.util.KernelException
ptolemy.kernel.util.IllegalActionException
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:
- Proposed Rating:
Field Summary |
private java.lang.String |
_nodeName
The name of the missing constant or identifier. |
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 |
_nodeName
private java.lang.String _nodeName
- The name of the missing constant or identifier.
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
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.