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