Update exception name.

This commit is contained in:
Dean Herbert
2017-04-20 12:11:03 +09:00
parent 873599b359
commit 1707c2458e
2 changed files with 4 additions and 4 deletions

View File

@ -131,7 +131,7 @@ namespace osu.Game.Rulesets.UI
// Check if the beatmap can be converted
if (!converter.CanConvert(beatmap.Beatmap))
throw new BeatmapInvalidForModeException($"{nameof(Beatmap)} can't be converted for the current ruleset.");
throw new BeatmapInvalidForRulesetException($"{nameof(Beatmap)} can't be converted for the current ruleset.");
// Convert the beatmap
Beatmap = converter.Convert(beatmap.Beatmap);
@ -279,9 +279,9 @@ namespace osu.Game.Rulesets.UI
protected abstract Playfield<TObject, TJudgement> CreatePlayfield();
}
public class BeatmapInvalidForModeException : Exception
public class BeatmapInvalidForRulesetException : Exception
{
public BeatmapInvalidForModeException(string text)
public BeatmapInvalidForRulesetException(string text)
: base(text)
{
}