org.osesb.utilities.xml
Class DefaultErrorHandler

java.lang.Object
  extended by org.osesb.utilities.xml.DefaultErrorHandler
All Implemented Interfaces:
org.xml.sax.ErrorHandler

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

The default parser error handler, which logs errors using the Log provider.

Since:
Version .9

Constructor Summary
DefaultErrorHandler()
          Creates a new instance of DefaultErrorHandler
 
Method Summary
 void error(org.xml.sax.SAXParseException spe)
          Callback function for the xml parser for errors.
 void fatalError(org.xml.sax.SAXParseException spe)
          Callback function for the xml parser for fatalErrors.
 void warning(org.xml.sax.SAXParseException spe)
          Callback function for the xml parser for warnings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultErrorHandler

public DefaultErrorHandler()
Creates a new instance of DefaultErrorHandler

Method Detail

warning

public void warning(org.xml.sax.SAXParseException spe)
Callback function for the xml parser for warnings.

Specified by:
warning in interface org.xml.sax.ErrorHandler
Parameters:
spe - a SAXParseException value

error

public void error(org.xml.sax.SAXParseException spe)
           throws org.xml.sax.SAXParseException
Callback function for the xml parser for errors.

Specified by:
error in interface org.xml.sax.ErrorHandler
Parameters:
spe - a SAXParseException value
Throws:
org.xml.sax.SAXParseException

fatalError

public void fatalError(org.xml.sax.SAXParseException spe)
                throws org.xml.sax.SAXParseException
Callback function for the xml parser for fatalErrors.

Specified by:
fatalError in interface org.xml.sax.ErrorHandler
Parameters:
spe - a SAXParseException value
Throws:
org.xml.sax.SAXParseException