microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
60ad4ec06bdc0f0e5e8c8114e1cc685f1dbc2568

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/common/error/internalErrorCode.ts

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