microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
add-command-to-support-react-native-ios

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/common/error/internalErrorCode.ts

156lines · 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 FailedToBuildPrecompiledIOS = 137,
43
44 // Device Deployer errors
45 IOSDeployNotFound = 201,
46
47 // Device Runner errors
48 DeviceNotPluggedIn = 301,
49 DeveloperDiskImgNotMountable = 302,
50 ApplicationLaunchFailed = 303,
51 ApplicationLaunchTimedOut = 304,
52 FailedToStartAndroidEmulator = 305,
53 TargetSelectionError = 306,
54 FailedToStartIOSSimulator = 307,
55 CouldNotRecognizeTargetType = 308,
56
57 // iOS Platform errors
58 IOSSimulatorNotLaunchable = 401,
59 IOSFoundMoreThanOneExecutablesCleanupBuildFolder = 402,
60 IOSCouldNotFoundExecutableInFolder = 403,
61 IOSCouldNotFoundDeviceForDirectDebugging = 404,
62 IOSThereIsNoAnyDebuggableTarget = 405,
63
64 // Packager errors
65 OpnPackagerLocationNotFound = 501,
66 OpnPackagerNotFound = 502,
67 FailedToStopPackagerOnExit = 503,
68 CannotAttachToPackagerCheckPackagerRunningOnPort = 504,
69 AnotherDebuggerConnectedToPackager = 505,
70
71 // React Native Project errors
72 ProjectVersionNotParsable = 601,
73 ProjectVersionUnsupported = 602,
74 ProjectVersionNotReadable = 603,
75 NotInReactNativeFolderError = 604,
76 CouldNotFindProjectVersion = 605,
77 ReactNativePackageIsNotInstalled = 606,
78 ReactNativeWindowsIsNotInstalled = 607,
79 ReactNativemacOSIsNotInstalled = 608,
80
81 // Miscellaneous errors
82 TelemetryInitializationFailed = 701,
83 ExtensionActivationFailed = 702,
84 DebuggerStubLauncherFailed = 703,
85 IntellisenseSetupFailed = 704,
86 NodeDebuggerConfigurationFailed = 705,
87 DebuggingFailed = 706,
88 RNTempFolderDeletionFailed = 707,
89 DebuggingFailedInNodeWrapper = 708,
90 PlatformNotSupported = 709,
91 WorkspaceNotFound = 710,
92 ExpectedExponentTunnelPath = 711,
93 NotAllSuccessPatternsMatched = 712,
94 CouldNotParsePackageVersion = 713,
95 PackageNotFound = 714,
96 ReactDevtoolsIsNotInstalled = 715,
97 CancellationTokenTriggered = 716,
98 UnknownError = 717,
99 WorkspaceIsNotTrusted = 718,
100 UserInputCanceled = 719,
101
102 // Activation errors
103 CouldNotFindLocationOfNodeDebugger = 801,
104 CouldNotFindWorkspace = 802,
105
106 // Inter Process Communication errors
107 ErrorWhileProcessingMessageInIPMSServer = 901,
108 ErrorNoPipeFound = 902,
109
110 // Validating user input errors
111 ExpectedIntegerValue = 1001,
112 ExpectedStringValue = 1002,
113 ExpectedBooleanValue = 1003,
114 ExpectedArrayValue = 1004,
115 ExpectedObjectValue = 1005,
116
117 // Exponent errors
118 RNVersionNotSupportedByExponent = 1101,
119 UserCancelledExpoLogin = 1102,
120 NgrokIsNotInstalledGlobally = 1103,
121
122 // Android errors
123 AndroidCouldNotInstallTheAppOnAnyAvailibleDevice = 1201,
124 AndroidShellCommandTimedOut = 1202,
125 AndroidProjectNotFound = 1203,
126 AndroidMoreThanOneDeviceOrEmulator = 1204,
127 AndroidFailedToLaunchTheSpecifiedActivity = 1205,
128 AndroidCouldNotStartLogCatMonitor = 1206,
129 AndroidCouldNotStopLogCatMonitor = 1207,
130 AndroidCouldNotFindActiveLogCatMonitor = 1208,
131 AndroidThereIsNoAnyOnlineDebuggableTarget = 1209,
132
133 // Windows Phone errors
134 WinRNMPPluginIsNotInstalled = 1301,
135 WinRunCommandFailed = 1302,
136
137 // Debugger errors
138 SourcesStoragePathIsNullOrEmpty = 1401,
139 DebuggingWontWorkReloadJSAndReconnect = 1402,
140 ReconnectionToPackagerFailedCheckForErrorsOrRestartReactNative = 1403,
141 FailedToProcessMessageFromReactNativeApp = 1404,
142 FailedToPrepareJSRuntimeEnvironment = 1405,
143 FailedToSendMessageToTheReactNativeApp = 1406,
144 ReactNativeWorkerProcessThrownAnError = 1407,
145 CouldntImportScriptAt = 1408,
146 RNMessageWithMethodExecuteApplicationScriptDoesntHaveURLProperty = 1409,
147 CouldNotAttachToDebugger = 1410,
148 CouldNotDirectDebugWithoutHermesEngine = 1411,
149
150 // CDP Proxy errors
151 CouldNotConnectToDebugTarget = 1501,
152
153 // Network Inspector errors
154 CouldNotStartNetworkInspector = 1601,
155 CouldNotStopNetworkInspector = 1602,
156}
157