Package org.springframework.util.xml
Class SimpleSaxErrorHandler
- java.lang.Object
- org.springframework.util.xml.SimpleSaxErrorHandler
- All Implemented Interfaces:
ErrorHandler
public class SimpleSaxErrorHandler extends Object implements ErrorHandler
Simpleorg.xml.sax.ErrorHandler
implementation: logs warnings using the given Commons Logging logger instance, and rethrows errors to discontinue the XML transformation.- Since:
- 1.2
- Author:
- Juergen Hoeller
Constructor Summary
Constructors Constructor Description SimpleSaxErrorHandler(Log logger)
Create a new SimpleSaxErrorHandler for the given Commons Logging logger instance.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
error(SAXParseException ex)
void
fatalError(SAXParseException ex)
void
warning(SAXParseException ex)
Constructor Detail
SimpleSaxErrorHandler
public SimpleSaxErrorHandler(Log logger)
Create a new SimpleSaxErrorHandler for the given Commons Logging logger instance.
Method Detail
warning
public void warning(SAXParseException ex) throws SAXException
- Specified by:
warning
in interfaceErrorHandler
- Throws:
SAXException
error
public void error(SAXParseException ex) throws SAXException
- Specified by:
error
in interfaceErrorHandler
- Throws:
SAXException
fatalError
public void fatalError(SAXParseException ex) throws SAXException
- Specified by:
fatalError
in interfaceErrorHandler
- Throws:
SAXException