A utility singleton class that provides error reporting functinality.
More...
#include <ErrorReporter.h>
A utility singleton class that provides error reporting functinality.
- Author
- Stas Jaroszynski
- Version
- 3.0
- Date
- July 2017
Definition at line 78 of file ErrorReporter.h.
◆ Type
Enumerator |
---|
Diagnostic | |
Info | |
Warning | |
Error | |
Fatal | |
Definition at line 81 of file ErrorReporter.h.
◆ ErrorReporter()
ErrorReporter::ErrorReporter |
( |
QWidget * |
parent | ) |
|
◆ ~ErrorReporter()
ErrorReporter::~ErrorReporter |
( |
| ) |
|
|
protected |
◆ GetInstance()
Returns the singleton instance of this class with lazy initialization
- Return values
-
Definition at line 93 of file ErrorReporter.h.
◆ GetSystemInformation()
static std::string ErrorReporter::GetSystemInformation |
( |
| ) |
|
|
static |
Returns basic system OS information
- Return values
-
string | containing OS information |
◆ OpenLogFile()
static int ErrorReporter::OpenLogFile |
( |
std::string |
path | ) |
|
|
static |
Opens log file and begins logging error and diagnostic messages
- Return values
-
◆ Report()
static void ErrorReporter::Report |
( |
std::string |
msg, |
|
|
Type |
severity = Diagnostic , |
|
|
std::string |
details = "" |
|
) |
| |
|
static |
Displays an error message with the log of errors and outputs the message to the log file
- Parameters
-
string | msg to display explaining error cause/implications |
Type | severity of message |
string | details of error. Default to current erros in log |
◆ ShowErrors()
static void ErrorReporter::ShowErrors |
( |
| ) |
|
|
static |
Displays the current log of errors with the default message ERRORREPORTER_DEFAULT_MESSAGE.
◆ _myBaseDiagCallback
void _myBaseDiagCallback |
( |
const char * |
msg | ) |
|
|
friend |
◆ _myBaseErrorCallback
void _myBaseErrorCallback |
( |
const char * |
msg, |
|
|
int |
err_code |
|
) |
| |
|
friend |
The documentation for this class was generated from the following file: