|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.xml.CmsXmlErrorHandler
public class CmsXmlErrorHandler
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).
Constructor Summary | |
---|---|
CmsXmlErrorHandler()
Creates an OpenCms XML error handler. |
|
CmsXmlErrorHandler(java.lang.String resourceName)
Creates an OpenCms XML error handler with a resource name for error logging. |
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 |
---|
public CmsXmlErrorHandler()
public CmsXmlErrorHandler(java.lang.String resourceName)
resourceName
- the name (path) of the XML resource that is handled, for loggingMethod Detail |
---|
public void error(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
ErrorHandler.error(org.xml.sax.SAXParseException)
public void fatalError(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
ErrorHandler.fatalError(org.xml.sax.SAXParseException)
public void warning(org.xml.sax.SAXParseException exception)
warning
in interface org.xml.sax.ErrorHandler
ErrorHandler.warning(org.xml.sax.SAXParseException)
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |