From 578e5cb92e66a62bd81b08d2cb0c944cedca5030 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Wed, 9 Dec 2020 15:59:13 +0900 Subject: [PATCH] Also make InvalidStateException serializable --- .../RealtimeMultiplayer/InvalidStateException.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/osu.Game/Online/RealtimeMultiplayer/InvalidStateException.cs b/osu.Game/Online/RealtimeMultiplayer/InvalidStateException.cs index 8393e7e925..7791bfc69f 100644 --- a/osu.Game/Online/RealtimeMultiplayer/InvalidStateException.cs +++ b/osu.Game/Online/RealtimeMultiplayer/InvalidStateException.cs @@ -2,14 +2,22 @@ // See the LICENCE file in the repository root for full licence text. using System; +using System.Runtime.Serialization; +using Microsoft.AspNetCore.SignalR; namespace osu.Game.Online.RealtimeMultiplayer { - public class InvalidStateException : Exception + [Serializable] + public class InvalidStateException : HubException { public InvalidStateException(string message) : base(message) { } + + protected InvalidStateException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } } }