Class ErrorHandlerProxy
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.util.ErrorHandlerProxy
-
- All Implemented Interfaces:
ErrorHandler
public abstract class ErrorHandlerProxy extends Object implements ErrorHandler
WrapsXMLErrorHandlerand make it look like a SAXErrorHandler.The derived class should override the
getErrorHandler()method so that it will return the correctXMLErrorHandlerinstance. This method will be called whenever an error/warning is found.Experience shows that it is better to store the actual
XMLErrorHandlerin 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$
- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
-
Constructor Summary
Constructors Constructor Description ErrorHandlerProxy()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiderror(SAXParseException e)voidfatalError(SAXParseException e)protected abstract XMLErrorHandlergetErrorHandler()voidwarning(SAXParseException e)
-
-
-
Method Detail
-
error
public void error(SAXParseException e) throws SAXException
- Specified by:
errorin interfaceErrorHandler- Throws:
SAXException
-
fatalError
public void fatalError(SAXParseException e) throws SAXException
- Specified by:
fatalErrorin interfaceErrorHandler- Throws:
SAXException
-
warning
public void warning(SAXParseException e) throws SAXException
- Specified by:
warningin interfaceErrorHandler- Throws:
SAXException
-
getErrorHandler
protected abstract XMLErrorHandler getErrorHandler()
-
-