Package org.apache.xerces.util
Class ErrorHandlerProxy
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.
- Version:
- $Id: ErrorHandlerProxy.java 447241 2006-09-18 05:12:57Z mrglavas $
- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
protected abstract org.apache.xerces.xni.parser.XMLErrorHandler
void
-
Constructor Details
-
ErrorHandlerProxy
public ErrorHandlerProxy()
-
-
Method Details
-
error
- Specified by:
error
in interfaceErrorHandler
- Throws:
SAXException
-
fatalError
- Specified by:
fatalError
in interfaceErrorHandler
- Throws:
SAXException
-
warning
- Specified by:
warning
in interfaceErrorHandler
- Throws:
SAXException
-
getErrorHandler
protected abstract org.apache.xerces.xni.parser.XMLErrorHandler getErrorHandler()
-