private static class DOMEcho.MyErrorHandler extends Object implements ErrorHandler
| Modifier and Type | Field and Description |
|---|---|
private PrintWriter |
out
Error handler output goes here
|
| Constructor and Description |
|---|
MyErrorHandler(PrintWriter out) |
| Modifier and Type | Method and Description |
|---|---|
void |
error(SAXParseException spe) |
void |
fatalError(SAXParseException spe) |
private String |
getParseExceptionInfo(SAXParseException spe)
Returns a string describing parse exception details
|
void |
warning(SAXParseException spe) |
private PrintWriter out
MyErrorHandler(PrintWriter out)
private String getParseExceptionInfo(SAXParseException spe)
public void warning(SAXParseException spe) throws SAXException
warning in interface ErrorHandlerSAXExceptionpublic void error(SAXParseException spe) throws SAXException
error in interface ErrorHandlerSAXExceptionpublic void fatalError(SAXParseException spe) throws SAXException
fatalError in interface ErrorHandlerSAXException