Save This Page
Home » Xerces-J-src.2.9.1 » org.apache.xerces » util » [javadoc | source]
org.apache.xerces.util
abstract public class: ErrorHandlerProxy [javadoc | source]
java.lang.Object
   org.apache.xerces.util.ErrorHandlerProxy

All Implemented Interfaces:
    ErrorHandler

Wraps XMLErrorHandler and make it look like a SAX ErrorHandler .

The derived class should override the #getErrorHandler() method so that it will return the correct XMLErrorHandler instance. This method will be called whenever an error/warning is found.

Experience shows that it is better to store the actual XMLErrorHandler in one place and looks up that variable, rather than copying it into every component that needs an error handler and update all of them whenever it is changed, IMO.

Method from org.apache.xerces.util.ErrorHandlerProxy Summary:
error,   fatalError,   getErrorHandler,   warning
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.xerces.util.ErrorHandlerProxy Detail:
 public  void error(SAXParseException e) throws SAXException 
 public  void fatalError(SAXParseException e) throws SAXException 
 abstract protected XMLErrorHandler getErrorHandler()
 public  void warning(SAXParseException e) throws SAXException