Package org.jdom.input.sax
Class BuilderErrorHandler
- java.lang.Object
-
- org.jdom.input.sax.BuilderErrorHandler
-
- All Implemented Interfaces:
ErrorHandler
public class BuilderErrorHandler extends Object implements ErrorHandler
The standard JDOM error handler implementation.
-
-
Constructor Summary
Constructors Constructor Description BuilderErrorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(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.voidfatalError(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.voidwarning(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 Detail
-
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:
warningin interfaceErrorHandler- Parameters:
exception-SAXParseExceptionthat 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:
errorin interfaceErrorHandler- Parameters:
exception-SAXParseExceptionthat 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:
fatalErrorin interfaceErrorHandler- Parameters:
exception-SAXParseExceptionthat occurred.- Throws:
SAXException- when things go wrong
-
-