org.jdom.input

Class BuilderErrorHandler

Implemented Interfaces:
ErrorHandler

public class BuilderErrorHandler
extends java.lang.Object
implements ErrorHandler

The standard JDOM error handler implementation.
Version:
$Revision: 1.12 $, $Date: 2004/02/06 09:28:31 $
Author:
Jason Hunter

Method Summary

void
error(SAXParseException exception)
This method is called in response to an error that has occurred; this indicates that a rule was broken, typically in validation, but that parsing could reasonably continue.
void
fatalError(SAXParseException exception)
This method is called in response to a fatal error; this indicates that a rule has been broken that makes continued parsing either impossible or an almost certain waste of time.
void
warning(SAXParseException exception)
This method is called when a warning has occurred; this indicates that while no XML rules were broken, something appears to be incorrect or missing.

Method Details

error

public void error(SAXParseException exception)
            throws SAXException
This method is called in response to an error that has occurred; this indicates that a rule was broken, typically in validation, but that parsing could reasonably continue. The implementation of this method here is to rethrow the exception.
Parameters:
exception - SAXParseException that occurred.

fatalError

public void fatalError(SAXParseException exception)
            throws SAXException
This method is called in response to a fatal error; this indicates that a rule has been broken that makes continued parsing either impossible or an almost certain waste of time. The implementation of this method here is to rethrow the exception.
Parameters:
exception - SAXParseException that occurred.

warning

public void warning(SAXParseException exception)
            throws SAXException
This method is called when a warning has occurred; this indicates that while no XML rules were broken, something appears to be incorrect or missing. The implementation of this method here is a "no op".
Parameters:
exception - SAXParseException that occurred.

Copyright B) 2004 Jason Hunter, Brett McLaughlin. All Rights Reserved.