using System;
namespace NewLife.RocketMQ.Protocol
{
/// <summary>响应异常</summary>
public class ResponseException : Exception
{
/// <summary>响应代码</summary>
public Int32 Code { get; set; }
/// <summary>实例化响应异常</summary>
/// <param name="code"></param>
/// <param name="message"></param>
public ResponseException(Int32 code, String message) : base(code + ": " + message) => Code = code;
}
}
|