Class 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$
    Author:
    Christopher Brooks
    See Also:
    Serialized Form
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (cxh)
    • 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.