Use InvalidOperationException

This commit is contained in:
Dean Herbert 2019-09-13 22:15:11 +09:00
parent d385c35955
commit 2379b665e3

View File

@ -52,7 +52,7 @@ namespace osu.Game.Tests.Visual
get get
{ {
if (UseOnlineAPI) if (UseOnlineAPI)
throw new Exception($"Using the {nameof(OsuTestScene)} dummy API is not supported when {nameof(UseOnlineAPI)} is true"); throw new InvalidOperationException($"Using the {nameof(OsuTestScene)} dummy API is not supported when {nameof(UseOnlineAPI)} is true");
return dummyAPI; return dummyAPI;
} }