17 Error(
int errlev, std::string message);
18 Error(
int errlev,
char* fmt, ... );
22 void notify(std::string message);
The Error class represents a list of exceptions that may happen when errors occur.
static void clearMessage()
Clear the stack of all the error messages which passed up to the last declaration which has finally t...
static std::string getAcceptableLevelToString()
Accessor to the current limit in the form of a std::string.
virtual ~Error()
Destructor.
ErrorLevel
Definition of the sequence of error levels sorted by ascending severity.
static ErrorLevel getLevel()
Accessor to the severity level of the error which has just been declared.
static ErrorLevel getAcceptableLevel()
Accessor to the current limit below wich error are not thrown.
static ErrorLevel acceptableErrorLevel
Current acceptable level of severity.
static void setAcceptableLevel(ErrorLevel criticalErrlev)
Setter to modify the critical current level of severity below which errors are tolerated.
static ErrorLevel errlev_
Error level.
std::string errorLog
Error log (TBD)
void notify(ErrorLevel errlev, const std::string &message)
static std::string getLevelToString()
Accessor to the severity level, in the form of a std::string, of the error which has just been declar...
static std::string getErrorMessage()
Accessor to the error message for the error which has just been declared.
static std::string errorMessage_
Error message.
static void clearErrLev()
Clear the stack of all the error levels which passed up to the last declaration which has finally tri...
void printMessage(const std::string &message)
Print utility.