winget-cli

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

Errors.cs (4884B)


      1 // -----------------------------------------------------------------------------
      2 // <copyright file="Errors.cs" company="Microsoft Corporation">
      3 //     Copyright (c) Microsoft Corporation. Licensed under the MIT License.
      4 // </copyright>
      5 // -----------------------------------------------------------------------------
      6 
      7 namespace Microsoft.Management.Configuration.UnitTests.Helpers
      8 {
      9     /// <summary>
     10     /// Contains the error codes used by Microsoft.Management.Configuration.
     11     /// </summary>
     12     internal static class Errors
     13     {
     14 #pragma warning disable SA1310 // Field names should not contain underscore
     15 #pragma warning disable SA1600 // Elements should be documented
     16 #pragma warning disable SA1025 // Code should not contain multiple whitespace in a row
     17 
     18         public static readonly int WINGET_CONFIG_ERROR_INVALID_CONFIGURATION_FILE           = unchecked((int)0x8A15C001);
     19         public static readonly int WINGET_CONFIG_ERROR_INVALID_YAML                         = unchecked((int)0x8A15C002);
     20         public static readonly int WINGET_CONFIG_ERROR_INVALID_FIELD_TYPE                   = unchecked((int)0x8A15C003);
     21         public static readonly int WINGET_CONFIG_ERROR_UNKNOWN_CONFIGURATION_FILE_VERSION   = unchecked((int)0x8A15C004);
     22         public static readonly int WINGET_CONFIG_ERROR_SET_APPLY_FAILED                     = unchecked((int)0x8A15C005);
     23         public static readonly int WINGET_CONFIG_ERROR_DUPLICATE_IDENTIFIER                 = unchecked((int)0x8A15C006);
     24         public static readonly int WINGET_CONFIG_ERROR_MISSING_DEPENDENCY                   = unchecked((int)0x8A15C007);
     25         public static readonly int WINGET_CONFIG_ERROR_DEPENDENCY_UNSATISFIED               = unchecked((int)0x8A15C008);
     26         public static readonly int WINGET_CONFIG_ERROR_ASSERTION_FAILED                     = unchecked((int)0x8A15C009);
     27         public static readonly int WINGET_CONFIG_ERROR_MANUALLY_SKIPPED                     = unchecked((int)0x8A15C00A);
     28         public static readonly int WINGET_CONFIG_ERROR_WARNING_NOT_ACCEPTED                 = unchecked((int)0x8A15C00B);
     29         public static readonly int WINGET_CONFIG_ERROR_SET_DEPENDENCY_CYCLE                 = unchecked((int)0x8A15C00C);
     30         public static readonly int WINGET_CONFIG_ERROR_INVALID_FIELD_VALUE                  = unchecked((int)0x8A15C00D);
     31         public static readonly int WINGET_CONFIG_ERROR_MISSING_FIELD                        = unchecked((int)0x8A15C00E);
     32         public static readonly int WINGET_CONFIG_ERROR_TEST_FAILED                          = unchecked((int)0x8A15C00F);
     33         public static readonly int WINGET_CONFIG_ERROR_TEST_NOT_RUN                         = unchecked((int)0x8A15C010);
     34         public static readonly int WINGET_CONFIG_ERROR_GET_FAILED                           = unchecked((int)0x8A15C011);
     35 
     36         // Configuration Processor Errors
     37         public static readonly int WINGET_CONFIG_ERROR_UNIT_NOT_INSTALLED                   = unchecked((int)0x8A15C101);
     38         public static readonly int WINGET_CONFIG_ERROR_UNIT_NOT_FOUND_REPOSITORY            = unchecked((int)0x8A15C102);
     39         public static readonly int WINGET_CONFIG_ERROR_UNIT_MULTIPLE_MATCHES                = unchecked((int)0x8A15C103);
     40         public static readonly int WINGET_CONFIG_ERROR_UNIT_INVOKE_GET                      = unchecked((int)0x8A15C104);
     41         public static readonly int WINGET_CONFIG_ERROR_UNIT_INVOKE_TEST                     = unchecked((int)0x8A15C105);
     42         public static readonly int WINGET_CONFIG_ERROR_UNIT_INVOKE_SET                      = unchecked((int)0x8A15C106);
     43         public static readonly int WINGET_CONFIG_ERROR_UNIT_MODULE_CONFLICT                 = unchecked((int)0x8A15C107);
     44         public static readonly int WINGET_CONFIG_ERROR_UNIT_IMPORT_MODULE                   = unchecked((int)0x8A15C108);
     45         public static readonly int WINGET_CONFIG_ERROR_UNIT_INVOKE_INVALID_RESULT           = unchecked((int)0x8A15C109);
     46         public static readonly int WINGET_CONFIG_ERROR_UNIT_SETTING_CONFIG_ROOT             = unchecked((int)0x8A15C110);
     47         public static readonly int WINGET_CONFIG_ERROR_UNIT_IMPORT_MODULE_ADMIN             = unchecked((int)0x8A15C111);
     48         public static readonly int WINGET_CONFIG_ERROR_NOT_SUPPORTED_BY_PROCESSOR           = unchecked((int)0x8A15C112);
     49         public static readonly int WINGET_CONFIG_ERROR_PARAMETER_INTEGRITY_BOUNDARY         = unchecked((int)0x8A15C013);
     50 
     51         // Limitation Set Errors
     52         public static readonly int CORE_INVALID_OPERATION = unchecked((int)0x80131509);
     53 
     54 #pragma warning restore SA1025 // Code should not contain multiple whitespace in a row
     55 #pragma warning restore SA1600 // Elements should be documented
     56 #pragma warning restore SA1310 // Field names should not contain underscore
     57     }
     58 }