wyvern.kernel.properties
Class WyvernXMLErrorHandler

java.lang.Object
  extended byorg.xml.sax.HandlerBase
      extended bywyvern.kernel.properties.WyvernXMLErrorHandler
All Implemented Interfaces:
org.xml.sax.DocumentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class WyvernXMLErrorHandler
extends org.xml.sax.HandlerBase

Handle errors - the default IBM DOM parser handling is terrible; it doesn't even show the file the error occurred in, let alone the line number.

Version:
1.0, Jul 12, 1999
Author:
Steve Yegge

Nested Class Summary
 class WyvernXMLErrorHandler.WyvernParseError
          Provides better exception messages than the default SaxParseException class.
 
Constructor Summary
WyvernXMLErrorHandler()
           
 
Method Summary
 void error(org.xml.sax.SAXParseException ex)
           
 void fatalError(org.xml.sax.SAXParseException ex)
           
 void setFilename(java.lang.String name)
          Remember the filename for printing errors, since the getSystemId() doesn't work, as we pass a stream to the parser.
 void warning(org.xml.sax.SAXParseException ex)
           
 
Methods inherited from class org.xml.sax.HandlerBase
characters, endDocument, endElement, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, startDocument, startElement, unparsedEntityDecl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WyvernXMLErrorHandler

public WyvernXMLErrorHandler()
Method Detail

setFilename

public void setFilename(java.lang.String name)
Remember the filename for printing errors, since the getSystemId() doesn't work, as we pass a stream to the parser.


warning

public void warning(org.xml.sax.SAXParseException ex)

error

public void error(org.xml.sax.SAXParseException ex)

fatalError

public void fatalError(org.xml.sax.SAXParseException ex)
                throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException