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.| 构造器和说明 |
|---|
SimpleSaxErrorHandler(Log logger)
Create a new SimpleSaxErrorHandler for the given
Commons Logging logger instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
error(SAXParseException ex) |
void |
fatalError(SAXParseException ex) |
void |
warning(SAXParseException ex) |
public SimpleSaxErrorHandler(Log logger)
public void warning(SAXParseException ex) throws SAXException
warning 在接口中 ErrorHandlerSAXExceptionpublic void error(SAXParseException ex) throws SAXException
error 在接口中 ErrorHandlerSAXExceptionpublic void fatalError(SAXParseException ex) throws SAXException
fatalError 在接口中 ErrorHandlerSAXException