winget-cli

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

SingleThreadedApartmentException.cs (979B)


      1 // -----------------------------------------------------------------------------
      2 // <copyright file="SingleThreadedApartmentException.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 System.Management.Automation;
     11     using Microsoft.WinGet.Resources;
     12 
     13     /// <summary>
     14     /// No package found.
     15     /// </summary>
     16     [Serializable]
     17     public class SingleThreadedApartmentException : RuntimeException
     18     {
     19         /// <summary>
     20         /// Initializes a new instance of the <see cref="SingleThreadedApartmentException"/> class.
     21         /// </summary>
     22         public SingleThreadedApartmentException()
     23             : base(Resources.SingleThreadedApartmentNotSupportedMessage)
     24         {
     25         }
     26     }
     27 }