1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-16 07:07:13 +02:00

Handle Poco exceptions explicitly.

This commit is contained in:
Sandu Liviu Catalin
2021-02-20 21:22:12 +02:00
parent 505650837e
commit 1f2b75ed26
12 changed files with 119 additions and 3 deletions

View File

@ -391,8 +391,12 @@ template < typename F, typename U, typename... Ts > SQInteger SqDynArgFwd(HSQUIR
try
{
return SqDynArgImpl< U, Ts... >::Try(fn, vm);
}
catch (const Poco::Exception& e)
{
return sq_throwerror(vm, e.displayText().c_str());
}
catch (const std::exception & e)
catch (const std::exception & e)
{
return sq_throwerror(vm, e.what());
}