mondrian.tui
Class XmlUtil.SaxErrorHandler
java.lang.Object
mondrian.tui.XmlUtil.SaxErrorHandler
- All Implemented Interfaces:
- org.xml.sax.ErrorHandler
- Enclosing class:
- XmlUtil
public static class XmlUtil.SaxErrorHandler
- extends java.lang.Object
- implements org.xml.sax.ErrorHandler
Error handler plus helper methods.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WARNING_STRING
public static final java.lang.String WARNING_STRING
- See Also:
- Constant Field Values
ERROR_STRING
public static final java.lang.String ERROR_STRING
- See Also:
- Constant Field Values
FATAL_ERROR_STRING
public static final java.lang.String FATAL_ERROR_STRING
- See Also:
- Constant Field Values
SEVERITY_WARNING
public static final short SEVERITY_WARNING
- See Also:
- Constant Field Values
SEVERITY_ERROR
public static final short SEVERITY_ERROR
- See Also:
- Constant Field Values
SEVERITY_FATAL_ERROR
public static final short SEVERITY_FATAL_ERROR
- See Also:
- Constant Field Values
XmlUtil.SaxErrorHandler
public XmlUtil.SaxErrorHandler()
printErrorInfos
public void printErrorInfos(java.io.PrintStream out)
formatErrorInfos
public static java.lang.String formatErrorInfos(XmlUtil.SaxErrorHandler saxEH)
formatErrorInfo
public static java.lang.String formatErrorInfo(XmlUtil.SaxErrorHandler.ErrorInfo ei)
getErrors
public java.util.List<XmlUtil.SaxErrorHandler.ErrorInfo> getErrors()
hasErrors
public boolean hasErrors()
warning
public void warning(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
- Specified by:
warning
in interface org.xml.sax.ErrorHandler
- Throws:
org.xml.sax.SAXException
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
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
addError
protected void addError(XmlUtil.SaxErrorHandler.ErrorInfo ei)
getFirstError
public java.lang.String getFirstError()