mirror of https://github.com/ppy/osu
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.
|
||||
|
||||
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)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue