Package uk.ac.starlink.ttools.taplint
Class ReporterErrorHandler
java.lang.Object
uk.ac.starlink.ttools.taplint.ReporterErrorHandler
- All Implemented Interfaces:
ErrorHandler
SAX ErrorHandler implementation based on a Reporter.
- Since:
- 3 Jun 2011
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
error
(SAXParseException err) void
int
Returns the number of fatal SAX errors encountered.Returns a short summary of the errors encountered during the parse.void
warning
(SAXParseException err)
-
Constructor Details
-
ReporterErrorHandler
Constructor.- Parameters:
reporter
- reporter object which handles delivering messages
-
-
Method Details
-
getFatalCount
public int getFatalCount()Returns the number of fatal SAX errors encountered.- Returns:
- fatal error count
-
getSummary
Returns a short summary of the errors encountered during the parse.- Returns:
- summary
-
warning
- Specified by:
warning
in interfaceErrorHandler
-
error
- Specified by:
error
in interfaceErrorHandler
-
fatalError
- Specified by:
fatalError
in interfaceErrorHandler
-