mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 18:26:39 +02:00
Fix exception throw (#28104)
* fix exception throw * fix settings crash * throw runtime_error
This commit is contained in:
committed by
GitHub
parent
83143169c6
commit
738072f508
@@ -192,7 +192,7 @@ void FindMyMouse::parse_settings(PowerToysSettings::PowerToyValues& settings)
|
||||
}
|
||||
else
|
||||
{
|
||||
throw;
|
||||
throw std::runtime_error("Invalid Activation Method value");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -258,7 +258,7 @@ void FindMyMouse::parse_settings(PowerToysSettings::PowerToyValues& settings)
|
||||
}
|
||||
else
|
||||
{
|
||||
throw;
|
||||
throw std::runtime_error("Invalid Overlay Opacity value");
|
||||
}
|
||||
}
|
||||
catch (...)
|
||||
@@ -276,7 +276,7 @@ void FindMyMouse::parse_settings(PowerToysSettings::PowerToyValues& settings)
|
||||
}
|
||||
else
|
||||
{
|
||||
throw;
|
||||
throw std::runtime_error("Invalid Spotlight Radius value");
|
||||
}
|
||||
}
|
||||
catch (...)
|
||||
@@ -294,7 +294,7 @@ void FindMyMouse::parse_settings(PowerToysSettings::PowerToyValues& settings)
|
||||
}
|
||||
else
|
||||
{
|
||||
throw;
|
||||
throw std::runtime_error("Invalid Animation Duration value");
|
||||
}
|
||||
}
|
||||
catch (...)
|
||||
@@ -312,7 +312,7 @@ void FindMyMouse::parse_settings(PowerToysSettings::PowerToyValues& settings)
|
||||
}
|
||||
else
|
||||
{
|
||||
throw;
|
||||
throw std::runtime_error("Invalid Spotlight Initial Zoom value");
|
||||
}
|
||||
}
|
||||
catch (...)
|
||||
@@ -355,7 +355,7 @@ void FindMyMouse::parse_settings(PowerToysSettings::PowerToyValues& settings)
|
||||
}
|
||||
else
|
||||
{
|
||||
throw;
|
||||
throw std::runtime_error("Invalid Shaking Minimum Distance value");
|
||||
}
|
||||
}
|
||||
catch (...)
|
||||
|
||||
Reference in New Issue
Block a user