microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
96c0d1898208cd825030c0f8b8353741900e4126

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/common/error/internalErrorCode.ts

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