#include <LOW_exception.h>
Inheritance diagram for LOW_exception:
Public Methods | |
LOW_exception () | |
Default constructor. More... | |
LOW_exception (const std::string inMsg, const std::string inFile, const int inLine) | |
Constructor. More... | |
LOW_exception (const int inErrNum, const std::string inMsg, const std::string inFile, const int inLine) | |
Constructor for OS errors. More... | |
~LOW_exception () | |
Destructor. More... | |
void | logException (const std::string inPrefix="") |
Log the exception via LOW_helper_msglog::printError(). More... | |
Static Public Methods | |
void | setLogOnCreation (const bool inLogOnCreation) |
Set wether exceptions should be logged automatically when created. More... | |
bool | getLogOnCreation () |
Get wether exceptions are logged automatically when created. More... | |
Public Attributes | |
const int | errNum |
OS error number. More... | |
const string | message |
Descriptive message. More... | |
const string | file |
File from which exception was thrown. More... | |
const int | line |
Line number where exception was thrown. More... | |
Static Protected Attributes | |
bool | logOnCreation = false |
Inicates wether exception should be logged automatically when the are created. More... |
Definition at line 40 of file LOW_exception.h.
|
Default constructor.
Definition at line 36 of file LOW_exception.cpp. |
|
Constructor.
Definition at line 42 of file LOW_exception.cpp. References logException(). |
|
Constructor for OS errors. The textual OS description (perror) is added automatically when exception is logged.
Definition at line 52 of file LOW_exception.cpp. References logException(). |
|
Destructor.
Definition at line 62 of file LOW_exception.cpp. |
|
Get wether exceptions are logged automatically when created.
Definition at line 78 of file LOW_exception.cpp. References logOnCreation. |
|
Log the exception via LOW_helper_msglog::printError().
Definition at line 89 of file LOW_exception.cpp. References errNum, file, line, message, LOW_helper_msglog::printError(), and LOW_helper_msglog::printPerror(). Referenced by LOW_exception(). |
|
Set wether exceptions should be logged automatically when created.
Definition at line 72 of file LOW_exception.cpp. References logOnCreation. |
|
OS error number.
Definition at line 50 of file LOW_exception.h. Referenced by logException(). |
|
File from which exception was thrown.
Definition at line 52 of file LOW_exception.h. Referenced by logException(). |
|
Line number where exception was thrown.
Definition at line 53 of file LOW_exception.h. Referenced by logException(). |
|
Inicates wether exception should be logged automatically when the are created.
Definition at line 28 of file LOW_exception.cpp. Referenced by getLogOnCreation(), and setLogOnCreation(). |
|
Descriptive message.
Definition at line 51 of file LOW_exception.h. Referenced by logException(). |