Beispiel #1
0
Exception::Exception(const Exception& ex)
    : std::exception(),
      m_Code (ex.getCode()),
      m_sErr (ex.getStr())
{
}
Beispiel #2
0
 void getCodeTest() {
     Exception *e = new Exception("no-message", 10, NULL);
     int code = e->getCode();
     CPPUNIT_ASSERT(code == 10);
 }