44 std::cerr <<
"ERROR: " << errormessage <<
"\n";
45 error_ = std::string(
"MyException: ") + errormessage;
50 std::cerr <<
"ERROR: " << errormessage <<
"\n";
51 error_ = std::string(
"MyException: ") + errormessage;
59 const char*
what()
const throw() {
Definition MyException.h:40
MyException(const std::string &errormessage)
Construct an exception using a C++-style string.
Definition MyException.h:49
const char * what() const
What's going on?
Definition MyException.h:59
MyException(const char *errormessage)
Construct an exception using a C-style character string.
Definition MyException.h:43
std::string error_
Definition MyException.h:69
virtual ~MyException()
Destroy.
Definition MyException.h:55