jcs.xml
Class ErrorHandler

java.lang.Object
  |
  +--org.xml.sax.helpers.DefaultHandler
        |
        +--jcs.xml.ErrorHandler

public class ErrorHandler
extends org.xml.sax.helpers.DefaultHandler

A class to catch errors from the XML parser.


Constructor Summary
ErrorHandler()
           
 
Method Summary
 void error(org.xml.sax.SAXParseException e)
          Treats validation errors as fatal.
 void warning(org.xml.sax.SAXParseException e)
          Dumps warnings too.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorHandler

public ErrorHandler()
Method Detail

error

public void error(org.xml.sax.SAXParseException e)
           throws org.xml.sax.SAXParseException
Treats validation errors as fatal.

This method is a placeholder, and may be replaced by some other treatment of parse errors arising in the server.

Parameters:
e - a SAXParseException thrown by the XML parser
Throws:
org.xml.sax.SAXParseException - Re-thrown when arising.
Overrides:
error in class org.xml.sax.helpers.DefaultHandler

warning

public void warning(org.xml.sax.SAXParseException e)
             throws org.xml.sax.SAXParseException
Dumps warnings too.

This method is a placeholder, and may be replaced by some other treatment of parse errors arising in the server.

Parameters:
e - a SAXParseException thrown by the XML parser
Throws:
org.xml.sax.SAXParseException - Re-thrown when arising.
Overrides:
warning in class org.xml.sax.helpers.DefaultHandler