mirror of https://github.com/ppy/osu
Move exceptions to common code
This commit is contained in:
parent
e193f8214d
commit
b3bdaaa7b5
|
@ -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