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

@@ -233,7 +233,7 @@ public:
}
else
{
throw;
throw std::runtime_error("Invalid Opacity value");
}
}
catch (...)
@@ -270,7 +270,7 @@ public:
}
else
{
throw;
throw std::runtime_error("Invalid Radius value");
}
}
@@ -289,7 +289,7 @@ public:
}
else
{
throw;
throw std::runtime_error("Invalid Thickness value");
}
}
@@ -327,7 +327,7 @@ public:
}
else
{
throw;
throw std::runtime_error("Invalid Border Color value");
}
}
catch (...)
@@ -366,7 +366,7 @@ public:
}
else
{
throw;
throw std::runtime_error("Invalid Fixed Length value");
}
}
catch (...)