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
Simple org.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 |
SimpleSaxErrorHandler(org.apache.commons.logging.Log logger)
Create a new SimpleSaxErrorHandler for the given
Commons Logging logger instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleSaxErrorHandler
public SimpleSaxErrorHandler(org.apache.commons.logging.Log logger)
- Create a new SimpleSaxErrorHandler for the given
Commons Logging logger instance.
warning
public void warning(SAXParseException ex)
throws SAXException
- Specified by:
warning
in interface ErrorHandler
- Throws:
SAXException
error
public void error(SAXParseException ex)
throws SAXException
- Specified by:
error
in interface ErrorHandler
- Throws:
SAXException
fatalError
public void fatalError(SAXParseException ex)
throws SAXException
- Specified by:
fatalError
in interface ErrorHandler
- Throws:
SAXException
Copyright (c) 2002-2006 The Spring Framework Project.