edu.stanford.db.xml.util
Class ErrorStore

java.lang.Object
  |
  +--edu.stanford.db.xml.util.ErrorStore
All Implemented Interfaces:
ErrorHandler

public class ErrorStore
extends java.lang.Object
implements ErrorHandler

An implementation of the ErrorHandler


Constructor Summary
ErrorStore()
           
 
Method Summary
 void error(SAXParseException exception)
          Report all recoverable errors, and try to continue parsing.
 java.lang.String errors()
           
 void fatalError(SAXParseException exception)
          Report all fatal errors, and try to continue parsing.
 void warning(SAXParseException exception)
          Report all warnings, and continue parsing.
 java.lang.String warnings()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorStore

public ErrorStore()
Method Detail

warning

public void warning(SAXParseException exception)
Report all warnings, and continue parsing.
Specified by:
warning in interface ErrorHandler
See Also:
ErrorHandler.warning(org.xml.sax.SAXParseException)

error

public void error(SAXParseException exception)
Report all recoverable errors, and try to continue parsing.
Specified by:
error in interface ErrorHandler
See Also:
ErrorHandler.error(org.xml.sax.SAXParseException)

fatalError

public void fatalError(SAXParseException exception)
                throws SAXException
Report all fatal errors, and try to continue parsing.

Note: results are no longer reliable once a fatal error has been reported.

Specified by:
fatalError in interface ErrorHandler
See Also:
ErrorHandler.fatalError(org.xml.sax.SAXParseException)

errors

public java.lang.String errors()

warnings

public java.lang.String warnings()