microsoft/vscode-react-native

Public

mirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
4cd259621ddfbd348fade892a2f3ee87fd1924c5

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/common/error/internalErrorCode.ts

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