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.

25 lines
537 B

using System;
namespace ET
{
/// <summary>
/// RPC异常,带ErrorCode
/// </summary>
public class RpcException: Exception
{
public int Error
{
get;
}
public RpcException(int error, string message): base($"Error: {error} Message: {message}")
{
this.Error = error;
}
public RpcException(int error, string message, Exception e): base($"Error: {error} Message: {message}", e)
{
this.Error = error;
}
}
}