winget-cli

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

UserSettingsReadException.cs (1293B)


      1 // -----------------------------------------------------------------------------
      2 // <copyright file="UserSettingsReadException.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     /// Settings.json file is invalid.
     15     /// </summary>
     16     [Serializable]
     17     public class UserSettingsReadException : RuntimeException
     18     {
     19         /// <summary>
     20         /// Initializes a new instance of the <see cref="UserSettingsReadException"/> class.
     21         /// </summary>
     22         public UserSettingsReadException()
     23             : base(Resources.UserSettingsReadException)
     24         {
     25         }
     26 
     27         /// <summary>
     28         /// Initializes a new instance of the <see cref="UserSettingsReadException"/> class.
     29         /// </summary>
     30         /// <param name="inner">Inner exception.</param>
     31         public UserSettingsReadException(Exception inner)
     32             : base(Resources.UserSettingsReadException, inner)
     33         {
     34         }
     35     }
     36 }