void exception::chainException(const exception& other) { exception* e = other.clone(); delete m_other; m_other = e; }
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; }
exception::exception(const string& what, const exception& other) : m_what(what), m_other(&other != &NO_EXCEPTION ? other.clone() : NULL) { }
exception::exception(const string& what, const exception& other) : std::runtime_error(what), m_other(&other != &NO_EXCEPTION ? other.clone() : NULL) { }