public class SimpleSaxErrorHandler extends Object implements ErrorHandler
org.xml.sax.ErrorHandler
implementation:
logs warnings using the given Commons Logging logger instance,
and rethrows errors to discontinue the XML transformation.Constructor and Description |
---|
SimpleSaxErrorHandler(Log logger)
Create a new SimpleSaxErrorHandler for the given
Commons Logging logger instance.
|
Modifier and Type | Method and Description |
---|---|
void |
error(SAXParseException ex) |
void |
fatalError(SAXParseException ex) |
void |
warning(SAXParseException ex) |
public SimpleSaxErrorHandler(Log logger)
public void warning(SAXParseException ex) throws SAXException
warning
in interface ErrorHandler
SAXException
public void error(SAXParseException ex) throws SAXException
error
in interface ErrorHandler
SAXException
public void fatalError(SAXParseException ex) throws SAXException
fatalError
in interface ErrorHandler
SAXException