winget-cli

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

WinGetCLITimeoutException.cs (1087B)


      1 // -----------------------------------------------------------------------------
      2 // <copyright file="WinGetCLITimeoutException.cs" company="Microsoft Corporation">
      3 //     Copyright (c) Microsoft Corporation. Licensed under the MIT License.
      4 // </copyright>
      5 // -----------------------------------------------------------------------------
      6 
      7 namespace Microsoft.WinGet.Client.Engine.Exceptions
      8 {
      9     using System;
     10     using Microsoft.WinGet.Resources;
     11 
     12     /// <summary>
     13     /// Time out exception for a winget cli command.
     14     /// </summary>
     15     public class WinGetCLITimeoutException : TimeoutException
     16     {
     17         /// <summary>
     18         /// Initializes a new instance of the <see cref="WinGetCLITimeoutException"/> class.
     19         /// </summary>
     20         /// <param name="command">Command.</param>
     21         /// <param name="parameters">Parameters.</param>
     22         public WinGetCLITimeoutException(string command, string? parameters)
     23             : base(string.Format(Resources.WinGetCLITimeoutExceptionMessage, command, parameters))
     24         {
     25         }
     26     }
     27 }