microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
improve-configuration

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/common/error/internalErrorCode.ts

155lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT license. See LICENSE file in the project root for details.
3
4export enum InternalErrorCode {
5 // Command Executor errors
6 CommandFailed = 101,
7 CommandFailedWithErrorCode = 102,
8 PackagerStartFailed = 103,
9 FailedToRunOnAndroid = 104,
10 FailedToRunOnIos = 105,
11 FailedToStartPackager = 106,
12 FailedToStopPackager = 107,
13 PackagerRunningInDifferentPort = 108,
14 FailedToRestartPackager = 109,
15 FailedToRunExponent = 110,
16 FailedToPublishToExpHost = 111,
17 UnsupportedCommandStatus = 112,
18 CommandFailedWithDetails = 113,
19 FailedToRunOnWindows = 114,
20 FailedToRunOnMacOS = 115,
21 DebuggingCommandFailed = 116,
22 FailedToTestDevEnvironment = 117,
23 CommandCanceled = 118,
24 FailedToConfigEASBuild = 119,
25 FailedToOpenProjectPage = 120,
26 FailedToRevertOpenModule = 121,
27 FailedToOpenRNUpgradeHelper = 122,
28 FailedToInstallExpoGo = 123,
29 FailedToLaunchExpoWeb = 124,
30 FailedToRunRNDoctor = 125,
31 FailedToRunExpoDoctor = 126,
32 FailedToRunPrebuild = 127,
33 FailedToRunPrebuildClean = 128,
34 FailedToReopenQRCode = 129,
35 FailedToEnableHermes = 130,
36 FailedToEnableExpoHermes = 131,
37 FailedToOpenExpoUpgradeHelper = 132,
38 FailedToKillPort = 133,
39 FaiedToSetNewArch = 134,
40 FailedToToggleNetworkView = 135,
41 FailedToRunEasBuild = 136,
42
43 // Device Deployer errors
44 IOSDeployNotFound = 201,
45
46 // Device Runner errors
47 DeviceNotPluggedIn = 301,
48 DeveloperDiskImgNotMountable = 302,
49 ApplicationLaunchFailed = 303,
50 ApplicationLaunchTimedOut = 304,
51 FailedToStartAndroidEmulator = 305,
52 TargetSelectionError = 306,
53 FailedToStartIOSSimulator = 307,
54 CouldNotRecognizeTargetType = 308,
55
56 // iOS Platform errors
57 IOSSimulatorNotLaunchable = 401,
58 IOSFoundMoreThanOneExecutablesCleanupBuildFolder = 402,
59 IOSCouldNotFoundExecutableInFolder = 403,
60 IOSCouldNotFoundDeviceForDirectDebugging = 404,
61 IOSThereIsNoAnyDebuggableTarget = 405,
62
63 // Packager errors
64 OpnPackagerLocationNotFound = 501,
65 OpnPackagerNotFound = 502,
66 FailedToStopPackagerOnExit = 503,
67 CannotAttachToPackagerCheckPackagerRunningOnPort = 504,
68 AnotherDebuggerConnectedToPackager = 505,
69
70 // React Native Project errors
71 ProjectVersionNotParsable = 601,
72 ProjectVersionUnsupported = 602,
73 ProjectVersionNotReadable = 603,
74 NotInReactNativeFolderError = 604,
75 CouldNotFindProjectVersion = 605,
76 ReactNativePackageIsNotInstalled = 606,
77 ReactNativeWindowsIsNotInstalled = 607,
78 ReactNativemacOSIsNotInstalled = 608,
79
80 // Miscellaneous errors
81 TelemetryInitializationFailed = 701,
82 ExtensionActivationFailed = 702,
83 DebuggerStubLauncherFailed = 703,
84 IntellisenseSetupFailed = 704,
85 NodeDebuggerConfigurationFailed = 705,
86 DebuggingFailed = 706,
87 RNTempFolderDeletionFailed = 707,
88 DebuggingFailedInNodeWrapper = 708,
89 PlatformNotSupported = 709,
90 WorkspaceNotFound = 710,
91 ExpectedExponentTunnelPath = 711,
92 NotAllSuccessPatternsMatched = 712,
93 CouldNotParsePackageVersion = 713,
94 PackageNotFound = 714,
95 ReactDevtoolsIsNotInstalled = 715,
96 CancellationTokenTriggered = 716,
97 UnknownError = 717,
98 WorkspaceIsNotTrusted = 718,
99 UserInputCanceled = 719,
100
101 // Activation errors
102 CouldNotFindLocationOfNodeDebugger = 801,
103 CouldNotFindWorkspace = 802,
104
105 // Inter Process Communication errors
106 ErrorWhileProcessingMessageInIPMSServer = 901,
107 ErrorNoPipeFound = 902,
108
109 // Validating user input errors
110 ExpectedIntegerValue = 1001,
111 ExpectedStringValue = 1002,
112 ExpectedBooleanValue = 1003,
113 ExpectedArrayValue = 1004,
114 ExpectedObjectValue = 1005,
115
116 // Exponent errors
117 RNVersionNotSupportedByExponent = 1101,
118 UserCancelledExpoLogin = 1102,
119 NgrokIsNotInstalledGlobally = 1103,
120
121 // Android errors
122 AndroidCouldNotInstallTheAppOnAnyAvailibleDevice = 1201,
123 AndroidShellCommandTimedOut = 1202,
124 AndroidProjectNotFound = 1203,
125 AndroidMoreThanOneDeviceOrEmulator = 1204,
126 AndroidFailedToLaunchTheSpecifiedActivity = 1205,
127 AndroidCouldNotStartLogCatMonitor = 1206,
128 AndroidCouldNotStopLogCatMonitor = 1207,
129 AndroidCouldNotFindActiveLogCatMonitor = 1208,
130 AndroidThereIsNoAnyOnlineDebuggableTarget = 1209,
131
132 // Windows Phone errors
133 WinRNMPPluginIsNotInstalled = 1301,
134 WinRunCommandFailed = 1302,
135
136 // Debugger errors
137 SourcesStoragePathIsNullOrEmpty = 1401,
138 DebuggingWontWorkReloadJSAndReconnect = 1402,
139 ReconnectionToPackagerFailedCheckForErrorsOrRestartReactNative = 1403,
140 FailedToProcessMessageFromReactNativeApp = 1404,
141 FailedToPrepareJSRuntimeEnvironment = 1405,
142 FailedToSendMessageToTheReactNativeApp = 1406,
143 ReactNativeWorkerProcessThrownAnError = 1407,
144 CouldntImportScriptAt = 1408,
145 RNMessageWithMethodExecuteApplicationScriptDoesntHaveURLProperty = 1409,
146 CouldNotAttachToDebugger = 1410,
147 CouldNotDirectDebugWithoutHermesEngine = 1411,
148
149 // CDP Proxy errors
150 CouldNotConnectToDebugTarget = 1501,
151
152 // Network Inspector errors
153 CouldNotStartNetworkInspector = 1601,
154 CouldNotStopNetworkInspector = 1602,
155}
156