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.ErrorHandlerimplementation: 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 voiderror(SAXParseException ex)voidfatalError(SAXParseException ex)voidwarning(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:
warningin interfaceErrorHandler- Throws:
SAXException
error
public void error(SAXParseException ex) throws SAXException
- Specified by:
errorin interfaceErrorHandler- Throws:
SAXException
fatalError
public void fatalError(SAXParseException ex) throws SAXException
- Specified by:
fatalErrorin interfaceErrorHandler- Throws:
SAXException