Also make InvalidStateException serializable

This commit is contained in:
Dean Herbert 2020-12-09 15:59:13 +09:00
parent ab00a15555
commit 578e5cb92e
1 changed files with 9 additions and 1 deletions

View File

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