add ex
This commit is contained in:
@@ -19,9 +19,17 @@ namespace VE
|
|||||||
{
|
{
|
||||||
for(;i < m_funcs.size();++i) m_funcs[i].m_func(e);
|
for(;i < m_funcs.size();++i) m_funcs[i].m_func(e);
|
||||||
}
|
}
|
||||||
|
catch(std::exception& ext)
|
||||||
|
{
|
||||||
|
hack::error()("call function is error:", ext.what());
|
||||||
|
hack::exception ex;
|
||||||
|
ex.system_error(ext);
|
||||||
|
ex.set_data(e);
|
||||||
|
throw ex;
|
||||||
|
}
|
||||||
catch(...)
|
catch(...)
|
||||||
{
|
{
|
||||||
hack::error()("call function is error...");
|
hack::error()("call function is errorI:", "oopps...");
|
||||||
hack::exception ex;
|
hack::exception ex;
|
||||||
ex.set_data(e);
|
ex.set_data(e);
|
||||||
throw ex;
|
throw ex;
|
||||||
|
|||||||
Reference in New Issue
Block a user