winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

ToolResponseException.cs (784B)


      1 // -----------------------------------------------------------------------------
      2 // <copyright file="ToolResponseException.cs" company="Microsoft Corporation">
      3 //     Copyright (c) Microsoft Corporation. Licensed under the MIT License.
      4 // </copyright>
      5 // -----------------------------------------------------------------------------
      6 
      7 namespace WinGetMCPServer.Exceptions
      8 {
      9     using ModelContextProtocol.Protocol;
     10 
     11     /// <summary>
     12     /// An exception that contains a tool response.
     13     /// </summary>
     14     internal class ToolResponseException : Exception
     15     {
     16         public ToolResponseException(CallToolResult toolResponse)
     17         {
     18             this.Response = toolResponse;
     19         }
     20 
     21         public CallToolResult Response { get; private set; }
     22     }
     23 }