Ejemplo n.º 1
0
void exception::chainException(const exception& other)
{
	exception* e = other.clone();

	delete m_other;
	m_other = e;
}
Ejemplo n.º 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;
}
Ejemplo n.º 3
0
exception::exception(const string& what, const exception& other)
	: m_what(what), m_other(&other != &NO_EXCEPTION ? other.clone() : NULL)
{
}
Ejemplo n.º 4
0
exception::exception(const string& what, const exception& other)
	: std::runtime_error(what), m_other(&other != &NO_EXCEPTION ? other.clone() : NULL)
{
}