ptolemy.moml
Class MissingClassException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.microstar.xml.XmlException
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:
- Proposed Rating:
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 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 |
_missingClassName
private java.lang.String _missingClassName
- The name of the missing class.
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.
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.