microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
259c018fa4baf0ea6b728e4dc1f0cfe07b55904c

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/common/error/internalErrorCode.ts

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