Name
ErrorHandler
Synopsis
The way SAX deals with error conditions is described in
Section 3.2.2 in Chapter 3. For the methods of the
ErrorHandler interface, each is
called with a parameter giving an SAXException instance as a parameter. The
specific exception classes are described in SAX Exceptions, later in this
Appendix.
error(exception)This method allows the application to respond to a recoverable error.
fatalError(exception)Similar to
error, this method indicates that the parser has encountered an error that is not recoverable. Applications are to assume that the document is unusable at this point.warning(exception)This method is called to communicate conditions that are not fatal, and not necessarily errors.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access