海淀天下城电子沙盘单机版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
807 B

4 years ago
using System;
using System.Collections.Generic;
namespace AX.NetworkSystem
{
/// <summary>
/// 表示错误信息。
/// </summary>
public struct ErrorInfo
{
/// <summary>
/// 表示错误码。
/// </summary>
public int ErrorCode { get; set; }
/// <summary>
/// 表示错误消息。
/// </summary>
public string ErrorMessage { get; set; }
/// <summary>
/// 创建一个错误信息实例。
/// </summary>
/// <param name="errorCode">错误码</param>
/// <param name="errorMessage">错误消息</param>
public ErrorInfo(int errorCode, string errorMessage = null)
{
ErrorCode = errorCode;
ErrorMessage = errorMessage;
}
}
}