story.scheherazade.virgil.help
Class HelpErrorHandler

java.lang.Object
  extended by story.scheherazade.virgil.help.HelpErrorHandler
All Implemented Interfaces:
org.xml.sax.ErrorHandler

public class HelpErrorHandler
extends java.lang.Object
implements org.xml.sax.ErrorHandler

This is an implementation of an ErrorHandler class for the Simple API for XML (SAX) It is intended to notify the user when one of three types of problems occur: Warnings Errors Fatal Errors

Author:
Marshall Fox Note: This code was modeled off of samples found online via the resource: http://www.ibm.com/developerworks/library/x-tipeh.html

Constructor Summary
HelpErrorHandler()
           
 
Method Summary
 void error(org.xml.sax.SAXParseException exception)
          Called when SAX wants to show an error - processing should not continue
 void fatalError(org.xml.sax.SAXParseException exception)
          Called when SAX indicates a fatal error - processing must not continue
 void warning(org.xml.sax.SAXParseException exception)
          Called when SAX wants to show a warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HelpErrorHandler

public HelpErrorHandler()
Method Detail

warning

public void warning(org.xml.sax.SAXParseException exception)
             throws org.xml.sax.SAXException
Called when SAX wants to show a warning

Specified by:
warning in interface org.xml.sax.ErrorHandler
Throws:
org.xml.sax.SAXException

error

public void error(org.xml.sax.SAXParseException exception)
           throws org.xml.sax.SAXException
Called when SAX wants to show an error - processing should not continue

Specified by:
error in interface org.xml.sax.ErrorHandler
Throws:
org.xml.sax.SAXException

fatalError

public void fatalError(org.xml.sax.SAXParseException exception)
                throws org.xml.sax.SAXException
Called when SAX indicates a fatal error - processing must not continue

Specified by:
fatalError in interface org.xml.sax.ErrorHandler
Throws:
org.xml.sax.SAXException


Copyright © 2011 David K. Elson. All Rights Reserved.