microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
29b51a5aab037f373860ff209506ebd6a91d9c90

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/common/error/internalErrorCode.ts

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