This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/
error_codes.h
58 lines (53 loc) · 2.6 KB
/
error_codes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#ifndef __ERROR_CODES_H__
#define __ERROR_CODES_H__
// These error and exit codes are document in the host-error-codes.md
enum StatusCode
{
// Success
Success = 0,
Success_HostAlreadyInitialized = 0x00000001,
Success_DifferentRuntimeProperties = 0x00000002,
// Failure
InvalidArgFailure = 0x80008081,
CoreHostLibLoadFailure = 0x80008082,
CoreHostLibMissingFailure = 0x80008083,
CoreHostEntryPointFailure = 0x80008084,
CoreHostCurHostFindFailure = 0x80008085,
// unused = 0x80008086,
CoreClrResolveFailure = 0x80008087,
CoreClrBindFailure = 0x80008088,
CoreClrInitFailure = 0x80008089,
CoreClrExeFailure = 0x8000808a,
ResolverInitFailure = 0x8000808b,
ResolverResolveFailure = 0x8000808c,
LibHostCurExeFindFailure = 0x8000808d,
LibHostInitFailure = 0x8000808e,
// unused = 0x8000808f,
LibHostExecModeFailure = 0x80008090,
LibHostSdkFindFailure = 0x80008091,
LibHostInvalidArgs = 0x80008092,
InvalidConfigFile = 0x80008093,
AppArgNotRunnable = 0x80008094,
AppHostExeNotBoundFailure = 0x80008095,
FrameworkMissingFailure = 0x80008096,
HostApiFailed = 0x80008097,
HostApiBufferTooSmall = 0x80008098,
LibHostUnknownCommand = 0x80008099,
LibHostAppRootFindFailure = 0x8000809a,
SdkResolverResolveFailure = 0x8000809b,
FrameworkCompatFailure = 0x8000809c,
FrameworkCompatRetry = 0x8000809d,
// unused = 0x8000809e,
BundleExtractionFailure = 0x8000809f,
BundleExtractionIOError = 0x800080a0,
LibHostDuplicateProperty = 0x800080a1,
HostApiUnsupportedVersion = 0x800080a2,
HostInvalidState = 0x800080a3,
HostPropertyNotFound = 0x800080a4,
CoreHostIncompatibleConfig = 0x800080a5,
};
#define STATUS_CODE_SUCCEEDED(status_code) ((static_cast<int>(static_cast<StatusCode>(status_code))) >= 0)
#endif // __ERROR_CODES_H__