DefaultHandler interface, which
handles all the errors, fatalerrors and warnings while reading the xml file.
This is the ErrorHandler which helps WebRowSetXmlReader
to handle any errors while reading the xml data.
| Modifier and Type | Field and Description |
|---|---|
| public int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | error(SAXParseException e)
Overrides org. Implements org. Receive notification of a recoverable parser error. |
| public void | fatalError(SAXParseException e)
Overrides org. Implements org. Report a fatal XML parsing error. |
| public void | warning(SAXParseException exception)
Overrides org. Implements org. Receive notification of a parser warning. |
| errorCounter | back to summary |
|---|---|
| public int errorCounter | |
| XmlErrorHandler | back to summary |
|---|---|
| public XmlErrorHandler() | |
| error | back to summary |
|---|---|
| public void error(SAXParseException e) throws SAXException Overrides org. Implements org. Doc from org. Receive notification of a recoverable parser error. The default implementation does nothing. Application writers may override this method in a subclass to take specific actions for each error, such as inserting the message in a log file or printing it to the console.
| |
| fatalError | back to summary |
|---|---|
| public void fatalError(SAXParseException e) throws SAXException Overrides org. Implements org. Doc from org. Report a fatal XML parsing error. The default implementation throws a SAXParseException. Application writers may override this method in a subclass if they need to take specific actions for each fatal error (such as collecting all of the errors into a single report): in any case, the application must stop all regular processing when this method is invoked, since the document is no longer reliable, and the parser may no longer report parsing events.
| |
| warning | back to summary |
|---|---|
| public void warning(SAXParseException exception) throws SAXException Overrides org. Implements org. Doc from org. Receive notification of a parser warning. The default implementation does nothing. Application writers may override this method in a subclass to take specific actions for each warning, such as inserting the message in a log file or printing it to the console.
| |