예제 #1
0
파일: exception.cpp 프로젝트: 8ackl0/vmime
void exception::chainException(const exception& other)
{
	exception* e = other.clone();

	delete m_other;
	m_other = e;
}
예제 #2
0
int push_exception(lua_State * L, exception const & e) {
    exception ** mem = static_cast<exception**>(lua_newuserdata(L, sizeof(exception*))); // NOLINT
    *mem = e.clone();
    luaL_getmetatable(L, exception_mt);
    lua_setmetatable(L, -2);
    return 1;
}
예제 #3
0
exception::exception(const string& what, const exception& other)
	: m_what(what), m_other(&other != &NO_EXCEPTION ? other.clone() : NULL)
{
}
예제 #4
0
파일: exception.cpp 프로젝트: 8ackl0/vmime
exception::exception(const string& what, const exception& other)
	: std::runtime_error(what), m_other(&other != &NO_EXCEPTION ? other.clone() : NULL)
{
}