resourceNotFound

Build a "resource not found" error using the legacy MCP-specific code (-32002). Kept for backwards compatibility; this form always emits -32002. Draft connections should instead use the version-aware overload below, which selects the version-appropriate code (draft aligns it to invalidParams / -32602).

  1. McpException resourceNotFound(string uri, Json data)
    @safe @safe pure nothrow
    resourceNotFound
    (
    string uri
    ,
    Json data = Json.undefined
    )
  2. McpException resourceNotFound(string uri, ProtocolVersion v, Json data)