IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Class used for accummulated error and warning reports for task composed of several steps. This is used when we want to perform the whole task even if some errors occur, and treat all errors and messages after the task is completed. More...
Public Member Functions | |
AccummulatedReport (IReporter rep, string location, bool throwExceptionOnErrors) | |
Constructor. More... | |
virtual void | Reset () |
Resets the report (remove all erorrs, warnings and info messages) More... | |
void | AddError (string message) |
Adds a new error message to the accummulated report. More... | |
void | AddWarning (string message) |
Adds a new warning message to the accummulated report. More... | |
void | AddInfo (string message) |
Adds a new info message to the accummulated report. More... | |
virtual void | Report () |
Launches the accummulated report. More... | |
Public Attributes | |
bool | ThrowExceptionOnErrors = true |
If true then exception is thrown in the case of errors when reporting is launched. More... | |
string | Location = null |
Description of location where the accummulated repord is generated. More... | |
Properties | |
int | NumErrors [get] |
Get number of errors accummulated on the report. More... | |
int | NumWarnings [get] |
Get number of warnings accummulated on the report. More... | |
int | NumInfos [get] |
Get number of infos accummulated on the report. More... | |
IReporter | R [get, set] |
Gets or sets the reporter used for reporting (if any). More... | |
virtual string | ErrorString [get] |
Concatenated string containing all info strings that exist on this class. More... | |
virtual string | WarningString [get] |
Concatenated string containing all warning strings that exist on this class. More... | |
virtual string | InfoString [get] |
Concatenated string containing all error strings that exist on this class. More... | |
virtual string | ErrorAndWarningString [get] |
Private Member Functions | |
AccummulatedReport () | |
Private Attributes | |
List< string > | _errorStrings = null |
List< string > | _warningStrings = null |
List< string > | _infoStrings = null |
IReporter | _rep = new ReporterConsole() |
Class used for accummulated error and warning reports for task composed of several steps. This is used when we want to perform the whole task even if some errors occur, and treat all errors and messages after the task is completed.
|
inlineprivate |
|
inline |
Constructor.
rep | Reporter object used for launching reports. |
throwExceptionOnErrors | If true then reporting methods will throw an exception when report contains errors. It is more common practice not to use tehse methods and launch reports & throw exceptions explicitly. |
|
inlinevirtual |
Resets the report (remove all erorrs, warnings and info messages)
|
inline |
Adds a new error message to the accummulated report.
message | Error message. |
Referenced by IG.Lib.MsgObservationEvent.CheckConsistency(), IG.Lib.MsgFinancialTransaction.CheckConsistency(), IG.Lib.DocFindings.CheckConsistency(), and IG.Lib.MsgObervationOrder.CheckConsistency().
|
inline |
Adds a new warning message to the accummulated report.
message | Warning message. |
Referenced by IG.Lib.MsgObervationOrder.CheckConsistency().
|
inline |
Adds a new info message to the accummulated report.
message | Info message. |
Referenced by IG.Lib.MsgObservationEvent.CheckConsistency(), IG.Lib.MsgFinancialTransaction.CheckConsistency(), IG.Lib.DocFindings.CheckConsistency(), and IG.Lib.ParsableXmlObject.CheckConsistency().
|
inlinevirtual |
Launches the accummulated report.
place | |
rep |
Referenced by IG.Lib.MsgObservationEvent.Read(), IG.Lib.MsgFinancialTransaction.Read(), IG.Lib.DocFindings.Read(), and IG.Lib.MsgObervationOrder.Read().
|
private |
|
private |
|
private |
|
private |
bool IG.Lib.ParsableXmlObject.AccummulatedReport.ThrowExceptionOnErrors = true |
If true then exception is thrown in the case of errors when reporting is launched.
string IG.Lib.ParsableXmlObject.AccummulatedReport.Location = null |
Description of location where the accummulated repord is generated.
|
get |
Get number of errors accummulated on the report.
|
get |
Get number of warnings accummulated on the report.
|
get |
Get number of infos accummulated on the report.
|
getset |
Gets or sets the reporter used for reporting (if any).
|
get |
Concatenated string containing all info strings that exist on this class.
|
get |
Concatenated string containing all warning strings that exist on this class.
|
get |
Concatenated string containing all error strings that exist on this class.
|
get |