public interface IErrorHandler extends IParserError
ATTR_VALUE, BEFORE_ATTRNAME, BOM, DOCTYPE_MISSED, FLOATING_ENDTAG, ILLEGAL_ATTRIBUTE, ILLEGAL_CHILD, ILLEGAL_DOCTYPE, ILLEGAL_TOP_ELEMENT, MISC_ERR, STARTTAG_SYNTAX_ERR, SUDDEN_ENDTAG, TAG_NAME, UNKNOWN_ELEMENT| Modifier and Type | Method and Description |
|---|---|
boolean |
handleError(int code,
IParser parser,
Node errorNode)
Handles error whose type is specified by
code |
boolean handleError(int code,
IParser parser,
Node errorNode)
throws ParseException,
IOException,
SAXException
codecode - error type.parser - caller of this handler. This parser's state is easily changed
by the referenced methods.errorNode - a node that causes the error.true if error was handled. Otherwise false
.ParseExceptionIOExceptionSAXExceptionIParser.getNode(),
IParser.pushBackNode(org.w3c.dom.Node),
IParser.getExtraErrInfo(),
IParser.getContext(),
IParser.setContext(org.w3c.dom.Element)