mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 01:47:30 +09:00
Move exceptions to common code
This commit is contained in:
parent
e193f8214d
commit
b3bdaaa7b5
15
osu.Game/Online/RealtimeMultiplayer/InvalidStateException.cs
Normal file
15
osu.Game/Online/RealtimeMultiplayer/InvalidStateException.cs
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace osu.Game.Online.RealtimeMultiplayer
|
||||||
|
{
|
||||||
|
public class InvalidStateException : Exception
|
||||||
|
{
|
||||||
|
public InvalidStateException(string message)
|
||||||
|
: base(message)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
using System;
|
||||||
|
|
||||||
|
namespace osu.Game.Online.RealtimeMultiplayer
|
||||||
|
{
|
||||||
|
public class NotJoinedRoomException : Exception
|
||||||
|
{
|
||||||
|
public NotJoinedRoomException()
|
||||||
|
: base("This user has not yet joined a multiplayer room.")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace osu.Game.Online.RealtimeMultiplayer
|
||||||
|
{
|
||||||
|
public class UserAlreadyInMultiplayerRoom : Exception
|
||||||
|
{
|
||||||
|
public UserAlreadyInMultiplayerRoom()
|
||||||
|
: base("This user is already in a room.")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user