mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-11-29 12:37:18 +01:00
Handle Poco exceptions explicitly.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user