ptolemy.moml
Class MissingClassException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.microstar.xml.XmlException
              extended by ptolemy.moml.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: MissingClassException.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 _missingClassName
          The name of the missing class.
 
Constructor Summary
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.
 
Method Summary
 java.lang.String missingClassName()
          Return the node name that caused the exception.
 
Methods inherited from class com.microstar.xml.XmlException
getCause, getColumn, getLine, getMessage, getSystemId, 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

_missingClassName

private java.lang.String _missingClassName
The name of the missing class.

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.