microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
1.5.1

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/common/error/internalErrorCode.ts

127lines · 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 WorkspaceIsNotTrusted = 718,
73
74 // Activation errors
75 CouldNotFindLocationOfNodeDebugger = 801,
76 CouldNotFindWorkspace = 802,
77
78 // Inter Process Communication errors
79 ErrorWhileProcessingMessageInIPMSServer = 901,
80 ErrorNoPipeFound = 902,
81
82 // Validating user input errors
83 ExpectedIntegerValue = 1001,
84 ExpectedStringValue = 1002,
85 ExpectedBooleanValue = 1003,
86 ExpectedArrayValue = 1004,
87 ExpectedObjectValue = 1005,
88
89 // Exponent errors
90 RNVersionNotSupportedByExponent = 1101,
91 UserCancelledExpoLogin = 1102,
92 NgrokIsNotInstalledGlobally = 1103,
93
94 // Android errors
95 AndroidCouldNotInstallTheAppOnAnyAvailibleDevice = 1201,
96 AndroidShellCommandTimedOut = 1202,
97 AndroidProjectNotFound = 1203,
98 AndroidMoreThanOneDeviceOrEmulator = 1204,
99 AndroidFailedToLaunchTheSpecifiedActivity = 1205,
100 AndroidCouldNotStartLogCatMonitor = 1206,
101 AndroidCouldNotStopLogCatMonitor = 1207,
102 AndroidCouldNotFindActiveLogCatMonitor = 1208,
103
104 // Windows Phone errors
105 WinRNMPPluginIsNotInstalled = 1301,
106 WinRunCommandFailed = 1302,
107
108 // Debugger errors
109 SourcesStoragePathIsNullOrEmpty = 1401,
110 DebuggingWontWorkReloadJSAndReconnect = 1402,
111 ReconnectionToPackagerFailedCheckForErrorsOrRestartReactNative = 1403,
112 FailedToProcessMessageFromReactNativeApp = 1404,
113 FailedToPrepareJSRuntimeEnvironment = 1405,
114 FailedToSendMessageToTheReactNativeApp = 1406,
115 ReactNativeWorkerProcessThrownAnError = 1407,
116 CouldntImportScriptAt = 1408,
117 RNMessageWithMethodExecuteApplicationScriptDoesntHaveURLProperty = 1409,
118 CouldNotAttachToDebugger = 1410,
119 CouldNotDirectDebugWithoutHermesEngine = 1411,
120
121 // CDP Proxy errors
122 CouldNotConnectToDebugTarget = 1501,
123
124 // Network Inspector errors
125 CouldNotStartNetworkInspector = 1601,
126 CouldNotStopNetworkInspector = 1602,
127}
128