优化了SereinWebSocket的API

This commit is contained in:
fengjiayi
2025-08-02 12:09:36 +08:00
parent 6fc57458a7
commit 93747ce7fd
10 changed files with 247 additions and 100 deletions

View File

@@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace Serein.Proto.WebSocket
{
/// <summary>
/// WebSocket处理异常
/// </summary>
[Serializable]
internal sealed class SereinWebSocketHandleException : Exception
{
public SereinWebSocketHandleException()
{
}
public SereinWebSocketHandleException(string message)
: base(message)
{
}
public SereinWebSocketHandleException(string message, Exception innerException)
: base(message, innerException)
{
}
private SereinWebSocketHandleException(SerializationInfo info, StreamingContext context): base(info, context)
{
}
}
}