-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathExceptions.cs
More file actions
36 lines (32 loc) · 981 Bytes
/
Copy pathExceptions.cs
File metadata and controls
36 lines (32 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
namespace WSNet2
{
/// <summary>
/// ロビーで起こりうる正常系の例外
/// </summary>
public class LobbyNormalException : Exception
{
public LobbyNormalException(string message) : base(message) { }
}
/// <summary>
/// サーバ側の部屋数上限に達した例外
/// </summary>
public class RoomLimitException : LobbyNormalException
{
public RoomLimitException(string message) : base(message) { }
}
/// <summary>
/// 入室可能な部屋が見つからなかった例外
/// </summary>
public class RoomNotFoundException : LobbyNormalException
{
public RoomNotFoundException(string message) : base(message) { }
}
/// <summary>
/// 満室で入室できなかった例外
/// </summary>
public class RoomFullException : LobbyNormalException
{
public RoomFullException(string message) : base(message) { }
}
}