microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
d55f3c22ee18a37c605867c8bf588451292bd24e

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/common/error/internalErrorCode.ts

115lines · 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
53 // Miscellaneous errors
54 TelemetryInitializationFailed = 701,
55 ExtensionActivationFailed = 702,
56 DebuggerStubLauncherFailed = 703,
57 IntellisenseSetupFailed = 704,
58 NodeDebuggerConfigurationFailed = 705,
59 DebuggingFailed = 706,
60 RNTempFolderDeletionFailed = 707,
61 DebuggingFailedInNodeWrapper = 708,
62 PlatformNotSupported = 709,
63 WorkspaceNotFound = 710,
64 ExpectedExponentTunnelPath = 711,
65 NotAllSuccessPatternsMatched = 712,
66 CouldNotParsePackageVersion = 713,
67 PackageNotFound = 714,
68 ReactDevtoolsIsNotInstalled = 715,
69 CancellationTokenTriggered = 716,
70
71 // Activation errors
72 CouldNotFindLocationOfNodeDebugger = 801,
73 CouldNotFindWorkspace = 802,
74
75 // Inter Process Communication errors
76 ErrorWhileProcessingMessageInIPMSServer = 901,
77 ErrorNoPipeFound = 902,
78
79 // Validating user input errors
80 ExpectedIntegerValue = 1001,
81 ExpectedStringValue = 1002,
82 ExpectedBooleanValue = 1003,
83 ExpectedArrayValue = 1004,
84 ExpectedObjectValue = 1005,
85
86 // Exponent errors
87 RNVersionNotSupportedByExponent = 1101,
88 UserCancelledExpoLogin = 1102,
89
90 // Android errors
91 AndroidCouldNotInstallTheAppOnAnyAvailibleDevice = 1201,
92 AndroidShellCommandTimedOut = 1202,
93 AndroidProjectNotFound = 1203,
94 AndroidMoreThanOneDeviceOrEmulator = 1204,
95 AndroidFailedToLaunchTheSpecifiedActivity = 1205,
96
97 // Windows Phone errors
98 WinRNMPPluginIsNotInstalled = 1301,
99
100 // Debugger errors
101 SourcesStoragePathIsNullOrEmpty = 1401,
102 DebuggingWontWorkReloadJSAndReconnect = 1402,
103 ReconnectionToPackagerFailedCheckForErrorsOrRestartReactNative = 1403,
104 FailedToProcessMessageFromReactNativeApp = 1404,
105 FailedToPrepareJSRuntimeEnvironment = 1405,
106 FailedToSendMessageToTheReactNativeApp = 1406,
107 ReactNativeWorkerProcessThrownAnError = 1407,
108 CouldntImportScriptAt = 1408,
109 RNMessageWithMethodExecuteApplicationScriptDoesntHaveURLProperty = 1409,
110 CouldNotAttachToDebugger = 1410,
111
112 // CDP Proxy errors
113 CouldNotConnectToDebugTarget = 1501,
114
115 }
116