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(org.apache.commons.logging.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(org.apache.commons.logging.Log logger)
public void warning(SAXParseException ex) throws SAXException
warning in interface ErrorHandlerSAXExceptionpublic void error(SAXParseException ex) throws SAXException
error in interface ErrorHandlerSAXExceptionpublic void fatalError(SAXParseException ex) throws SAXException
fatalError in interface ErrorHandlerSAXExceptionCopyright © 2015. All rights reserved.