节点在线、应用在线、配置在线使用令牌查询
大石头 authored at 2021-12-16 19:49:30
393.00 B
Stardust
namespace Stardust.Mcp;

/// <summary>MCP业务异常。Code 为 JSON-RPC 错误码(沿用旧实现约定:-32602参数、-32001未认证、-32003越权、-32000业务失败)</summary>
public class McpException : Exception
{
    /// <summary>JSON-RPC错误码</summary>
    public Int32 Code { get; }

    public McpException(Int32 code, String message) : base(message) => Code = code;
}