Package org.jdom2.input.sax
Class BuilderErrorHandler
java.lang.Object
org.jdom2.input.sax.BuilderErrorHandler
- All Implemented Interfaces:
ErrorHandler
The standard JDOM error handler implementation.
- Author:
- Jason Hunter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
Constructor Details
-
BuilderErrorHandler
public BuilderErrorHandler()
-
-
Method Details
-
warning
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 interfaceErrorHandler
- Parameters:
exception
-SAXParseException
that occurred.- Throws:
SAXException
- when things go wrong
-
error
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 interfaceErrorHandler
- Parameters:
exception
-SAXParseException
that occurred.- Throws:
SAXException
- when things go wrong
-
fatalError
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 interfaceErrorHandler
- Parameters:
exception
-SAXParseException
that occurred.- Throws:
SAXException
- when things go wrong
-