ErrorCodes.cs (3244B)
1 // ----------------------------------------------------------------------------- 2 // <copyright file="ErrorCodes.cs" company="Microsoft Corporation"> 3 // Copyright (c) Microsoft Corporation. Licensed under the MIT License. 4 // </copyright> 5 // ----------------------------------------------------------------------------- 6 7 namespace Microsoft.Management.Configuration.Processor.Exceptions 8 { 9 /// <summary> 10 /// This should match the ones in AppInstallerErrors.h. 11 /// </summary> 12 internal static class ErrorCodes 13 { 14 /// <summary> 15 /// Corresponds to E_UNEXPECTED; this code path was reached without the developer realizing it was possible. 16 /// </summary> 17 internal const int Unexpected = unchecked((int)0x8000ffff); 18 19 /// <summary> 20 /// The module of the unit was installed, but the unit was not found. 21 /// </summary> 22 internal const int WinGetConfigUnitNotFound = unchecked((int)0x8A15C101); 23 24 /// <summary> 25 /// The unit couldn't be found in the repository. 26 /// </summary> 27 internal const int WinGetConfigUnitNotFoundRepository = unchecked((int)0x8A15C102); 28 29 /// <summary> 30 /// Multiple units found with the same criteria. 31 /// </summary> 32 internal const int WinGetConfigUnitMultipleMatches = unchecked((int)0x8A15C103); 33 34 /// <summary> 35 /// Unit error calling Invoke-DscResource Get. 36 /// </summary> 37 internal const int WinGetConfigUnitInvokeGet = unchecked((int)0x8A15C104); 38 39 /// <summary> 40 /// Unit error calling Invoke-DscResource Test. 41 /// </summary> 42 internal const int WinGetConfigUnitInvokeTest = unchecked((int)0x8A15C105); 43 44 /// <summary> 45 /// Unit error calling Invoke-DscResource Set. 46 /// </summary> 47 internal const int WinGetConfigUnitInvokeSet = unchecked((int)0x8A15C106); 48 49 /// <summary> 50 /// Internal error calling Get-DscResource. More than one module found with the same version. 51 /// </summary> 52 internal const int WinGetConfigUnitModuleConflict = unchecked((int)0x8A15C107); 53 54 /// <summary> 55 /// The module where the DSC resource is implemented cannot be imported. 56 /// </summary> 57 internal const int WinGetConfigUnitImportModule = unchecked((int)0x8A15C108); 58 59 /// <summary> 60 /// The unit returned an invalid result. 61 /// </summary> 62 internal const int WinGetConfigUnitInvokeInvalidResult = unchecked((int)0x8A15C109); 63 64 /// <summary> 65 /// The unit contains a setting that requires config root. 66 /// </summary> 67 internal const int WinGetConfigUnitSettingConfigRoot = unchecked((int)0x8A15C110); 68 69 /// <summary> 70 /// The module where the DSC resource is implemented requires admin. 71 /// </summary> 72 internal const int WinGetConfigUnitImportModuleAdmin = unchecked((int)0x8A15C111); 73 74 /// <summary> 75 /// The property type of a unit is not supported. 76 /// </summary> 77 internal const int WinGetConfigUnitUnsupportedType = unchecked((int)0x8A15C112); 78 } 79 }