|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object extended byptolemy.moml.StreamErrorHandler
Basic error handler for the MoMLParser class. This error handler reports errors to a stream or to standard error, and requests that parsing continue.
MoMLParser
| Field Summary |
| Fields inherited from interface ptolemy.moml.ErrorHandler |
CANCEL, CONTINUE, RETHROW |
| Constructor Summary | |
StreamErrorHandler()
Create an error handler that sends messages to the standard error. |
|
StreamErrorHandler(java.io.OutputStream out)
Create an error handler that sends messages to the specified stream. |
|
| Method Summary | |
void |
enableErrorSkipping(boolean enable)
Enable or disable skipping of errors. |
int |
handleError(java.lang.String element,
NamedObj context,
java.lang.Throwable exception)
Handle an error by printing a description of the error to the stream specified in the constructor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StreamErrorHandler()
public StreamErrorHandler(java.io.OutputStream out)
out - The OutputStream| Method Detail |
public void enableErrorSkipping(boolean enable)
enableErrorSkipping in interface ErrorHandlerenable - True to enable skipping, false to disable.public int handleError(java.lang.String element, NamedObj context, java.lang.Throwable exception)
handleError in interface ErrorHandlerelement - The XML element that triggered the error.context - The container object for the element.exception - The exception that was thrown.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||