mirror of
https://github.com/osukey/osukey.git
synced 2025-05-07 22:57:31 +09:00
More missed exceptions.
This commit is contained in:
parent
23e2d3ef07
commit
88f8619e9a
@ -51,7 +51,7 @@ namespace osu.Game.Rulesets.Mania.Timing
|
|||||||
var controlPoint = drawableControlPoints.LastOrDefault(t => t.CanContain(drawable)) ?? drawableControlPoints.FirstOrDefault();
|
var controlPoint = drawableControlPoints.LastOrDefault(t => t.CanContain(drawable)) ?? drawableControlPoints.FirstOrDefault();
|
||||||
|
|
||||||
if (controlPoint == null)
|
if (controlPoint == null)
|
||||||
throw new Exception("Could not find suitable timing section to add object to.");
|
throw new InvalidOperationException("Could not find suitable timing section to add object to.");
|
||||||
|
|
||||||
controlPoint.Add(drawable);
|
controlPoint.Add(drawable);
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ namespace osu.Game.Rulesets.Mania.UI
|
|||||||
ControlPoint firstTimingChange = Beatmap.TimingInfo.ControlPoints.FirstOrDefault(t => t.TimingChange);
|
ControlPoint firstTimingChange = Beatmap.TimingInfo.ControlPoints.FirstOrDefault(t => t.TimingChange);
|
||||||
|
|
||||||
if (firstTimingChange == null)
|
if (firstTimingChange == null)
|
||||||
throw new Exception("The Beatmap contains no timing points!");
|
throw new InvalidOperationException("The Beatmap contains no timing points!");
|
||||||
|
|
||||||
// Generate the timing points, making non-timing changes use the previous timing change
|
// Generate the timing points, making non-timing changes use the previous timing change
|
||||||
var timingChanges = Beatmap.TimingInfo.ControlPoints.Select(c =>
|
var timingChanges = Beatmap.TimingInfo.ControlPoints.Select(c =>
|
||||||
|
@ -288,7 +288,7 @@ namespace osu.Game.Online.API
|
|||||||
{
|
{
|
||||||
APIRequest req;
|
APIRequest req;
|
||||||
while (oldQueue.TryDequeue(out req))
|
while (oldQueue.TryDequeue(out req))
|
||||||
req.Fail(new Exception(@"Disconnected from server"));
|
req.Fail(new WebException(@"Disconnected from server"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user