microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
f521686613075eb4a9cebc89a01cbcf289ec258f

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/common/error/internalErrorCode.ts

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