public class RethrowingParserErrorHandler
extends java.lang.Object
implements org.xml.sax.ErrorHandler
ErrorHandler that throws errors and fatalErrors when they are reported. Warnings are ignored.| Constructor and Description |
|---|
RethrowingParserErrorHandler()
Constructs a RethrowingParserErrorHandler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
error(org.xml.sax.SAXParseException spe)
Receives notification of a recoverable error and throws a
SAXParseException. |
void |
fatalError(org.xml.sax.SAXParseException spe)
Receives notification of a fatal error and throws a
SAXParseException.. |
void |
warning(org.xml.sax.SAXParseException spe)
Receives notification of a warning and ignores it.
|
public RethrowingParserErrorHandler()
public void warning(org.xml.sax.SAXParseException spe)
warning in interface org.xml.sax.ErrorHandlerspe - the SAXParseException that caused the warningErrorHandler.warning(SAXParseException)public void error(org.xml.sax.SAXParseException spe)
throws org.xml.sax.SAXException
SAXParseException.error in interface org.xml.sax.ErrorHandlerspe - the SAXParseException that caused the errororg.xml.sax.SAXException - this is always re-thrownErrorHandler.error(SAXParseException)public void fatalError(org.xml.sax.SAXParseException spe)
throws org.xml.sax.SAXException
SAXParseException..fatalError in interface org.xml.sax.ErrorHandlerspe - the SAXParseException taht caused the fatal errororg.xml.sax.SAXException - this is always re-thrownErrorHandler.fatalError(SAXParseException)