Package com.microstrategy.web.transform
Class MSTRLayoutParser.ParserErrorHandler
- java.lang.Object
-
- com.microstrategy.web.transform.MSTRLayoutParser.ParserErrorHandler
-
- All Implemented Interfaces:
org.xml.sax.ErrorHandler
- Enclosing class:
- MSTRLayoutParser
protected static class MSTRLayoutParser.ParserErrorHandler extends java.lang.Object implements org.xml.sax.ErrorHandler
This is the defualt implementation for the ErrorHandler object used with the SAX Parser.- Since:
- MicroStrategy Web 8.0.0
-
-
Constructor Summary
Constructors Constructor Description ParserErrorHandler(LayoutParser.MessageListener listener, MSTRLayoutParser.ParserContentHandler parserContentHandler)
The constructor for the default error handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
error(org.xml.sax.SAXParseException spe)
This method is called when an error message is generated by the SAX Parser.void
fatalError(org.xml.sax.SAXParseException spe)
This method is called when a fatal error message is generated by the SAX Parser.void
warning(org.xml.sax.SAXParseException spe)
This method is called when a warning message is generated by the SAX Parser.
-
-
-
Constructor Detail
-
ParserErrorHandler
public ParserErrorHandler(LayoutParser.MessageListener listener, MSTRLayoutParser.ParserContentHandler parserContentHandler)
The constructor for the default error handler.- Parameters:
listener
- TheLayoutParser.MessageListener
to use to route messages back to the caller.parserContentHandler
- TheMSTRLayoutParser.ParserContentHandler
class that can be used to generate consistent error messages and log the number of validation errors.
-
-
Method Detail
-
warning
public void warning(org.xml.sax.SAXParseException spe) throws org.xml.sax.SAXException
This method is called when a warning message is generated by the SAX Parser.- Specified by:
warning
in interfaceorg.xml.sax.ErrorHandler
- Parameters:
spe
- This is the SAXParserException generated by the SAX Parser.- Throws:
org.xml.sax.SAXException
-
error
public void error(org.xml.sax.SAXParseException spe) throws org.xml.sax.SAXException
This method is called when an error message is generated by the SAX Parser.- Specified by:
error
in interfaceorg.xml.sax.ErrorHandler
- Parameters:
spe
- This is the SAXParserException generated by the SAX Parser.- Throws:
org.xml.sax.SAXException
-
fatalError
public void fatalError(org.xml.sax.SAXParseException spe) throws org.xml.sax.SAXException
This method is called when a fatal error message is generated by the SAX Parser.- Specified by:
fatalError
in interfaceorg.xml.sax.ErrorHandler
- Parameters:
spe
- This is the SAXParserException generated by the SAX Parser.- Throws:
org.xml.sax.SAXException
-
-