ErrorCode.cs (2219B)
1 // ----------------------------------------------------------------------------- 2 // <copyright file="ErrorCode.cs" company="Microsoft Corporation"> 3 // Copyright (c) Microsoft Corporation. Licensed under the MIT License. 4 // </copyright> 5 // ----------------------------------------------------------------------------- 6 7 namespace Microsoft.WinGet.Client.Engine.Common 8 { 9 /// <summary> 10 /// Error code constants. 11 /// </summary> 12 internal static class ErrorCode 13 { 14 /// <summary> 15 /// Error code for ERROR_FILE_NOT_FOUND. 16 /// </summary> 17 public const int FileNotFound = unchecked((int)0x80070002); 18 19 /// <summary> 20 /// Error code for RPC_S_SERVER_UNAVAILABLE. 21 /// </summary> 22 public const int RpcServerUnavailable = unchecked((int)0x800706BA); 23 24 /// <summary> 25 /// Error code for RPC_S_CALL_FAILED. 26 /// </summary> 27 public const int RpcCallFailed = unchecked((int)0x800706BE); 28 29 /// <summary> 30 /// Error code for ERROR_PACKAGE_NOT_REGISTERED_FOR_USER. 31 /// </summary> 32 public const int PackageNotRegisteredForUser = unchecked((int)0x80073D35); 33 34 /// <summary> 35 /// Error code for APPINSTALLER_CLI_ERROR_NO_REPAIR_INFO_FOUND. 36 /// </summary> 37 public const int NoRepairInfoFound = unchecked((int)0x8A150079); 38 39 /// <summary> 40 /// Error code for APPINSTALLER_CLI_ERROR_REPAIR_NOT_APPLICABLE. 41 /// </summary> 42 public const int RepairNotApplicable = unchecked((int)0x8A15007A); 43 44 /// <summary> 45 /// Error code for APPINSTALLER_CLI_ERROR_EXEC_REPAIR_FAILED . 46 /// </summary> 47 public const int RepairerFailure = unchecked((int)0x8A15007B); 48 49 /// <summary> 50 /// Error code for APPINSTALLER_CLI_ERROR_REPAIR_NOT_SUPPORTED. 51 /// </summary> 52 public const int RepairNotSupported = unchecked((int)0x8A15007C); 53 54 /// <summary> 55 /// Error code for APPINSTALLER_CLI_ERROR_ADMIN_CONTEXT_REPAIR_PROHIBITED. 56 /// </summary> 57 public const int AdminContextRepairProhibited = unchecked((int)0x8A15007D); 58 } 59 }