1
0
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:
Dean Herbert 2020-12-08 14:49:36 +09:00
parent e193f8214d
commit b3bdaaa7b5
3 changed files with 42 additions and 0 deletions

View 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)
{
}
}
}

View File

@ -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.")
{
}
}
}

View 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 UserAlreadyInMultiplayerRoom : Exception
{
public UserAlreadyInMultiplayerRoom()
: base("This user is already in a room.")
{
}
}
}