Class DefaultErrorHandler
- java.lang.Object
-
- com.microstrategy.web.app.maps.kml.DefaultErrorHandler
-
- All Implemented Interfaces:
org.xml.sax.ErrorHandler
public class DefaultErrorHandler extends java.lang.Object implements org.xml.sax.ErrorHandler
This class implements theErrorHandler
interface by implementing theerror(SAXParseException)
,fatalError(SAXParseException)
andwarning(SAXParseException)
methods. It does so in concert with the associatedDefaultContentHandler
(which provides aDefaultContentHandler.generateErrorMessage(String)
method) andMessageRouter
interface.- Since:
- MicroStrategy Web 8.1.0
-
-
Field Summary
Fields Modifier and Type Field Description protected KMLContentHandler
contentHandler
-
Constructor Summary
Constructors Constructor Description DefaultErrorHandler(KMLContentHandler contentHandler)
Creates a new DefaultErrorHandler object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
error(org.xml.sax.SAXParseException exception)
void
fatalError(org.xml.sax.SAXParseException exception)
void
warning(org.xml.sax.SAXParseException exception)
-
-
-
Field Detail
-
contentHandler
protected KMLContentHandler contentHandler
-
-
Constructor Detail
-
DefaultErrorHandler
public DefaultErrorHandler(KMLContentHandler contentHandler)
Creates a new DefaultErrorHandler object.- Parameters:
contentHandler
- TheDefaultContentHandler
which is being used to parse the XML content.msgRouter
- TheMessageRouter
which is being to route error and warning messages.
-
-
Method Detail
-
error
public void error(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
- Specified by:
error
in interfaceorg.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 interfaceorg.xml.sax.ErrorHandler
- Throws:
org.xml.sax.SAXException
-
warning
public void warning(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
- Specified by:
warning
in interfaceorg.xml.sax.ErrorHandler
- Throws:
org.xml.sax.SAXException
-
-