30 return errMsg.empty();
51 void set(
const string& err) {
59 const string&
get()
const {
78 #define assertMsg(cond, msg) if (not (cond)) { throw Cats_Exception(msg); } 81 #define assertAsync() assertMsg(isCircuit(), "The LTS does not specify a circuit.") 87 const char * what()
const throw() {
94 #endif // ERRORMANAGER_H ErrorMgr()
Main constructor (with no error).
Definition: ErrorManager.h:23
Definition: ErrorManager.h:83
void clear()
Cleans the error message (no error).
Definition: ErrorManager.h:43
bool exists() const
Indicates whether there is an error message.
Definition: ErrorManager.h:36
Definition: ErrorManager.h:17
bool empty() const
Indicates whether there is no error.
Definition: ErrorManager.h:29