Package gov.nasa.pds.tools.util
Class XMLErrorListener
- java.lang.Object
-
- gov.nasa.pds.tools.util.XMLErrorListener
-
- All Implemented Interfaces:
ErrorListener
,ErrorHandler
public class XMLErrorListener extends Object implements ErrorListener, ErrorHandler
Class that handles errors while parsing an XML file.- Author:
- mcayanan
-
-
Constructor Summary
Constructors Constructor Description XMLErrorListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
error(TransformerException exception)
Method is called when an error is encountered.void
error(SAXParseException exception)
void
fatalError(TransformerException exception)
Method is called when a fatal error is encountered.void
fatalError(SAXParseException exception)
void
warning(TransformerException exception)
Method is called when a warning is encountered.void
warning(SAXParseException exception)
-
-
-
Method Detail
-
error
public void error(TransformerException exception) throws TransformerException
Method is called when an error is encountered.- Specified by:
error
in interfaceErrorListener
- Parameters:
exception
- The exception containing the error.- Throws:
TransformerException
- Throws the exception.
-
fatalError
public void fatalError(TransformerException exception) throws TransformerException
Method is called when a fatal error is encountered.- Specified by:
fatalError
in interfaceErrorListener
- Parameters:
exception
- The exception containing the fatal error.- Throws:
TransformerException
- Throws the exception.
-
warning
public void warning(TransformerException exception) throws TransformerException
Method is called when a warning is encountered.- Specified by:
warning
in interfaceErrorListener
- Parameters:
exception
- The exception containing the warning.- Throws:
TransformerException
- Throws the exception.
-
warning
public void warning(SAXParseException exception) throws SAXException
- Specified by:
warning
in interfaceErrorHandler
- Throws:
SAXException
-
error
public void error(SAXParseException exception) throws SAXException
- Specified by:
error
in interfaceErrorHandler
- Throws:
SAXException
-
fatalError
public void fatalError(SAXParseException exception) throws SAXException
- Specified by:
fatalError
in interfaceErrorHandler
- Throws:
SAXException
-
-