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