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:
parent
ab00a15555
commit
578e5cb92e
@ -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)
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user