microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
68a5b8d5c6704ec52a8966b3776a8c976314d895

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/common/error/internalErrorCode.ts

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