mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-16 07:07:13 +02:00
Adjust the code to use the .what() method from the Sqrat exception.
This commit is contained in:
@ -191,7 +191,7 @@ static SQInteger SqNanL(HSQUIRRELVM vm)
|
||||
}
|
||||
catch (const Sqrat::Exception & e)
|
||||
{
|
||||
return sq_throwerror(vm, e.Message().c_str());
|
||||
return sq_throwerror(vm, e.what());
|
||||
}
|
||||
catch (const std::exception e)
|
||||
{
|
||||
@ -696,7 +696,7 @@ static SQInteger SqRoundL(HSQUIRRELVM vm)
|
||||
}
|
||||
catch (const Sqrat::Exception & e)
|
||||
{
|
||||
return sq_throwerror(vm, e.Message().c_str());
|
||||
return sq_throwerror(vm, e.what());
|
||||
}
|
||||
catch (const std::exception e)
|
||||
{
|
||||
|
@ -83,7 +83,7 @@ static SQInteger SqLeftStr(HSQUIRRELVM vm)
|
||||
}
|
||||
catch (const Sqrat::Exception & e)
|
||||
{
|
||||
return sq_throwerror(vm, e.Message().c_str());
|
||||
return sq_throwerror(vm, e.what());
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
@ -182,7 +182,7 @@ static SQInteger SqLeftOffsetStr(HSQUIRRELVM vm)
|
||||
}
|
||||
catch (const Sqrat::Exception & e)
|
||||
{
|
||||
return sq_throwerror(vm, e.Message().c_str());
|
||||
return sq_throwerror(vm, e.what());
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
@ -274,7 +274,7 @@ static SQInteger SqRightStr(HSQUIRRELVM vm)
|
||||
}
|
||||
catch (const Sqrat::Exception & e)
|
||||
{
|
||||
return sq_throwerror(vm, e.Message().c_str());
|
||||
return sq_throwerror(vm, e.what());
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
@ -373,7 +373,7 @@ static SQInteger SqRightOffsetStr(HSQUIRRELVM vm)
|
||||
}
|
||||
catch (const Sqrat::Exception & e)
|
||||
{
|
||||
return sq_throwerror(vm, e.Message().c_str());
|
||||
return sq_throwerror(vm, e.what());
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
@ -460,7 +460,7 @@ static SQInteger SqCenterStr(HSQUIRRELVM vm)
|
||||
}
|
||||
catch (const Sqrat::Exception & e)
|
||||
{
|
||||
return sq_throwerror(vm, e.Message().c_str());
|
||||
return sq_throwerror(vm, e.what());
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
@ -1096,7 +1096,7 @@ static SQInteger SqStrExplode(HSQUIRRELVM vm)
|
||||
}
|
||||
catch (const Sqrat::Exception & e)
|
||||
{
|
||||
return sq_throwerror(vm, e.Message().c_str());
|
||||
return sq_throwerror(vm, e.what());
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
|
Reference in New Issue
Block a user