mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
CA2201: throw correct exception type.
This commit is contained in:
@ -111,7 +111,7 @@ namespace osu.Game.Tests.Visual
|
||||
foreach (var type in requiredGameDependencies)
|
||||
{
|
||||
if (game.Dependencies.Get(type) == null)
|
||||
throw new Exception($"{type} has not been cached");
|
||||
throw new InvalidOperationException($"{type} has not been cached");
|
||||
}
|
||||
|
||||
return true;
|
||||
@ -121,7 +121,7 @@ namespace osu.Game.Tests.Visual
|
||||
foreach (var type in requiredGameBaseDependencies)
|
||||
{
|
||||
if (gameBase.Dependencies.Get(type) == null)
|
||||
throw new Exception($"{type} has not been cached");
|
||||
throw new InvalidOperationException($"{type} has not been cached");
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user