mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:47:26 +08: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…
Reference in New Issue
Block a user