1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-28 00:07:20 +08:00

Also make InvalidStateException serializable

This commit is contained in:
Dean Herbert 2020-12-09 15:59:13 +09:00
parent ab00a15555
commit 578e5cb92e

View File

@ -2,14 +2,22 @@
// See the LICENCE file in the repository root for full licence text. // See the LICENCE file in the repository root for full licence text.
using System; using System;
using System.Runtime.Serialization;
using Microsoft.AspNetCore.SignalR;
namespace osu.Game.Online.RealtimeMultiplayer namespace osu.Game.Online.RealtimeMultiplayer
{ {
public class InvalidStateException : Exception [Serializable]
public class InvalidStateException : HubException
{ {
public InvalidStateException(string message) public InvalidStateException(string message)
: base(message) : base(message)
{ {
} }
protected InvalidStateException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
} }
} }