Class XMLErrorHandler
- java.lang.Object
-
- org.vedantatree.expressionoasis.utils.XMLErrorHandler
-
- All Implemented Interfaces:
ErrorHandler
public class XMLErrorHandler extends Object implements ErrorHandler
It handles the error occurred during validating/parsing the XML document
-
-
Constructor Summary
Constructors Constructor Description XMLErrorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
error(SAXParseException exception)
The error is invoked when ever any error occurs during XML validation.void
fatalError(SAXParseException exception)
The fatalError is invoked when ever any fatal error occurs during XML validation.void
warning(SAXParseException exception)
The warning is invoked when ever any warning occurs during XML validation.
-
-
-
Method Detail
-
error
public void error(SAXParseException exception) throws SAXException
The error is invoked when ever any error occurs during XML validation.- Specified by:
error
in interfaceErrorHandler
- Throws:
SAXException
-
fatalError
public void fatalError(SAXParseException exception) throws SAXException
The fatalError is invoked when ever any fatal error occurs during XML validation.- Specified by:
fatalError
in interfaceErrorHandler
- Throws:
SAXException
-
warning
public void warning(SAXParseException exception) throws SAXException
The warning is invoked when ever any warning occurs during XML validation.- Specified by:
warning
in interfaceErrorHandler
- Throws:
SAXException
-
-