Package ptolemy.moml

Class MissingClassException

  • All Implemented Interfaces:
    java.io.Serializable

    public class MissingClassException
    extends XmlException
    Thrown on an attempt to evaluate MoML that contains a missing class.

    This exception is used to catch missing classes in during cut and paste operations by MoMLParser.

    Since:
    Ptolemy II 6.1
    Version:
    $Id$
    Author:
    Christopher Brooks
    See Also:
    Serialized Form
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (cxh)
    • Constructor Detail

      • MissingClassException

        public MissingClassException​(java.lang.String message,
                                     java.lang.String missingClassName,
                                     java.lang.String systemId,
                                     int line,
                                     int column)
        Construct a new XML parsing exception. } /** Constructs an Exception with a detail message that includes the name of the first argument.
        Parameters:
        message - The error message from the parser.
        missingClassName - The name of the missing class.
        systemId - The URI of the entity containing the error.
        line - The line number where the error appeared.
        column - The column number where the error appeared.
    • Method Detail

      • missingClassName

        public java.lang.String missingClassName()
        Return the node name that caused the exception.
        Returns:
        the name of the unidentified constant or identifier that caused the exception.