org.jdom.input
Class BuilderErrorHandler
java.lang.Object
org.jdom.input.BuilderErrorHandler
- All Implemented Interfaces:
- ErrorHandler
- public class BuilderErrorHandler
- extends Object
- implements ErrorHandler
- Version:
- $Revision: 1.10 $, $Date: 2002/04/29 13:38:16 $
- 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BuilderErrorHandler
public BuilderErrorHandler()
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".
- Specified by:
warning
in interface ErrorHandler
- Parameters:
exception
- SAXParseException
that occurred.
- Throws:
SAXException
- when things go wrong
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.
- Specified by:
error
in interface ErrorHandler
- Parameters:
exception
- SAXParseException
that occurred.
- Throws:
SAXException
- when things go wrong
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.
- Specified by:
fatalError
in interface ErrorHandler
- Parameters:
exception
- SAXParseException
that occurred.
- Throws:
SAXException
- when things go wrong
Copyright ? 2003 Jason Hunter, Brett McLaughlin. All Rights Reserved.