gov.nasa.pds.tools.util
Class XMLErrorListener

java.lang.Object
  extended by gov.nasa.pds.tools.util.XMLErrorListener
All Implemented Interfaces:
ErrorListener

public class XMLErrorListener
extends Object
implements ErrorListener

Class that handles errors while parsing an XML file.

Author:
mcayanan

Constructor Summary
XMLErrorListener()
           
 
Method Summary
 void error(TransformerException exception)
          Method is called when an error is encountered.
 void fatalError(TransformerException exception)
          Method is called when a fatal error is encountered.
 void warning(TransformerException exception)
          Method is called when a warning is encountered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLErrorListener

public XMLErrorListener()
Method Detail

error

public void error(TransformerException exception)
           throws TransformerException
Method is called when an error is encountered.

Specified by:
error in interface ErrorListener
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 interface ErrorListener
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 interface ErrorListener
Parameters:
exception - The exception containing the warning.
Throws:
TransformerException - Throws the exception.


Copyright © 2010-2014 Planetary Data System. All Rights Reserved.