microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
34472878f9e8d227bd5d0902161c571864c5d12d

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/common/error/internalErrorCode.ts

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