19 #include "exceptions.h"
23 const std::string exception_msg=
"[Exception caught] - ";
27 this->error_msg=exception_msg;
28 this->error_msg+=where;
29 this->error_msg+=
"\nError: ";
CException(const std::string &where, const std::string &error_msg)
Class constructor.
virtual const std::string & what(void)
Function to get the error message.
virtual ~CException()
Class destructor.
std::string error_msg
Exception error message.