Fix exception throw (#28104)

* fix exception throw

* fix settings crash

* throw runtime_error
This commit is contained in:
Davide Giacometti
2023-08-24 14:53:48 +02:00
committed by GitHub
parent 83143169c6
commit 738072f508
5 changed files with 18 additions and 18 deletions

View File

@@ -238,7 +238,7 @@ public:
}
else
{
throw;
throw std::runtime_error("Invalid Opacity value");
}
}
catch (...)
@@ -314,7 +314,7 @@ public:
}
else
{
throw;
throw std::runtime_error("Invalid Radius value");
}
}
catch (...)
@@ -332,7 +332,7 @@ public:
}
else
{
throw;
throw std::runtime_error("Invalid Fade Delay value");
}
}
catch (...)
@@ -350,7 +350,7 @@ public:
}
else
{
throw;
throw std::runtime_error("Invalid Fade Duration value");
}
}
catch (...)