mondrian.tui
Class XmlUtil.SAXErrorHandler
java.lang.Object
mondrian.tui.XmlUtil.SAXErrorHandler
- All Implemented Interfaces:
- ErrorHandler
- Enclosing class:
- XmlUtil
public static class XmlUtil.SAXErrorHandler
- extends Object
- implements 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 String WARNING_STRING
- See Also:
- Constant Field Values
ERROR_STRING
public static final String ERROR_STRING
- See Also:
- Constant Field Values
FATAL_ERROR_STRING
public static final 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(PrintStream out)
formatErrorInfos
public static String formatErrorInfos(XmlUtil.SAXErrorHandler saxEH)
formatErrorInfo
public static String formatErrorInfo(XmlUtil.SAXErrorHandler.ErrorInfo ei)
getErrors
public List<XmlUtil.SAXErrorHandler.ErrorInfo> getErrors()
hasErrors
public boolean hasErrors()
warning
public void warning(SAXParseException exception)
throws SAXException
- Specified by:
warning
in interface ErrorHandler
- Throws:
SAXException
error
public void error(SAXParseException exception)
throws SAXException
- Specified by:
error
in interface ErrorHandler
- Throws:
SAXException
fatalError
public void fatalError(SAXParseException exception)
throws SAXException
- Specified by:
fatalError
in interface ErrorHandler
- Throws:
SAXException
addError
protected void addError(XmlUtil.SAXErrorHandler.ErrorInfo ei)
getFirstError
public String getFirstError()