microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
fix-ts-error1

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/common/error/internalErrorCode.ts

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