org.jaffa.util
Class DefaultErrorHandler

java.lang.Object
  extended byorg.jaffa.util.DefaultErrorHandler
All Implemented Interfaces:
ErrorHandler

public class DefaultErrorHandler
extends Object
implements ErrorHandler

This is an implementation of the ErrorHandler interface. It enforces a very strict validation policy. SAXException will be thrown if any warning, error, fatalError is raised during XML parsing.

Author:
GautamJ

Constructor Summary
DefaultErrorHandler()
           
 
Method Summary
 void error(SAXParseException exception)
          Throws a SAXException if any error is raised by the XML parser.
 void fatalError(SAXParseException exception)
          Throws a SAXException if any fatalError is raised by the XML parser.
 void warning(SAXParseException exception)
          Throws a SAXException if any warning is raised by the XML parser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultErrorHandler

public DefaultErrorHandler()
Method Detail

error

public void error(SAXParseException exception)
           throws SAXException
Throws a SAXException if any error is raised by the XML parser.

Specified by:
error in interface ErrorHandler
Parameters:
exception - The error information encapsulated in a SAX parse exception.
Throws:
SAXException - The input exception.

fatalError

public void fatalError(SAXParseException exception)
                throws SAXException
Throws a SAXException if any fatalError is raised by the XML parser.

Specified by:
fatalError in interface ErrorHandler
Parameters:
exception - The fatalError information encapsulated in a SAX parse exception.
Throws:
SAXException - The input exception.

warning

public void warning(SAXParseException exception)
             throws SAXException
Throws a SAXException if any warning is raised by the XML parser.

Specified by:
warning in interface ErrorHandler
Parameters:
exception - The warning information encapsulated in a SAX parse exception.
Throws:
SAXException - The input exception.


Copyright © 2002-2004 JAFFA Project.