org.opencms.xml
Class CmsXmlErrorHandler

java.lang.Object
  extended by org.opencms.xml.CmsXmlErrorHandler
All Implemented Interfaces:
ErrorHandler

public class CmsXmlErrorHandler
extends Object
implements ErrorHandler

Error hander for writing errors found during XML validation to the OpenCms log.

Exceptions caused by warnings are suppressed (but written to the log if level is set to WARN).

Since:
6.0.0
Version:
$Revision: 1.7 $
Author:
Michael Emmerich

Constructor Summary
CmsXmlErrorHandler()
           
 
Method Summary
 void error(SAXParseException exception)
           
 void fatalError(SAXParseException exception)
           
 void warning(SAXParseException exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsXmlErrorHandler

public CmsXmlErrorHandler()
Method Detail

error

public void error(SAXParseException exception)
           throws SAXException
Specified by:
error in interface ErrorHandler
Throws:
SAXException
See Also:
ErrorHandler.error(org.xml.sax.SAXParseException)

fatalError

public void fatalError(SAXParseException exception)
                throws SAXException
Specified by:
fatalError in interface ErrorHandler
Throws:
SAXException
See Also:
ErrorHandler.fatalError(org.xml.sax.SAXParseException)

warning

public void warning(SAXParseException exception)
Specified by:
warning in interface ErrorHandler
See Also:
ErrorHandler.warning(org.xml.sax.SAXParseException)