org.opencms.xml
Class CmsXmlErrorHandler

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

public class CmsXmlErrorHandler
extends java.lang.Object
implements org.xml.sax.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.8 $
Author:
Michael Emmerich

Constructor Summary
CmsXmlErrorHandler()
           
 
Method Summary
 void error(org.xml.sax.SAXParseException exception)
           
 void fatalError(org.xml.sax.SAXParseException exception)
           
 void warning(org.xml.sax.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(org.xml.sax.SAXParseException exception)
           throws org.xml.sax.SAXException
Specified by:
error in interface org.xml.sax.ErrorHandler
Throws:
org.xml.sax.SAXException
See Also:
ErrorHandler.error(org.xml.sax.SAXParseException)

fatalError

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

warning

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