Files
JJBB/Assets/Project/Script/GameLogic/NetWork/SocketAPI/PacketException.cs
2024-08-23 15:49:34 +08:00

41 lines
1017 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/********************************************************************************
* 文件名PacketException.cs
* 全路径: \NetWork\SocketAPI\PacketException.cs
* 创建人: 王华
* 创建时间2013-11-29
*
* 功能说明: 消息包异常类
*
* 修改记录:
*********************************************************************************/
using System;
using System.IO;
namespace SPacket.SocketInstance
{
public class PacketException : IOException
{
internal PacketException(string message)
: base(message)
{
}
internal static PacketException PacketReadError(string msg)
{
return new PacketException("PacketException ReadError:"+msg);
}
internal static PacketException PacketExecuteError(string msg)
{
return new PacketException("PacketException ExecuteError:" + msg);
}
internal static PacketException PacketCreateError(string msg)
{
return new PacketException("PacketException CreateError:" + msg);
}
}
}