Package uk.ac.starlink.ttools.taplint
Class HoldReporter
java.lang.Object
uk.ac.starlink.ttools.taplint.HoldReporter
- All Implemented Interfaces:
Reporter
Reporter implementation that records reports, and can dump them
on request to another Reporter instance.
Not thread-safe.
- Since:
- 24 May 2016
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dumpReports
(Reporter reporter) Dumps all reports received to date to a supplied reporter.void
report
(ReportCode code, String msg) Reports a message.void
report
(ReportCode code, String msg, Throwable err) Reports a message with an associated throwable.
-
Constructor Details
-
HoldReporter
public HoldReporter()Constructor.
-
-
Method Details
-
report
Description copied from interface:Reporter
Reports a message.This convenience method is equivalent to calling
report(code,message,null)
-
report
Description copied from interface:Reporter
Reports a message with an associated throwable. -
dumpReports
Dumps all reports received to date to a supplied reporter. Reports are passed on in order of receipt. The list of held reports is emptied by calling this method.- Parameters:
reporter
- destination reporter
-