microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
2c19da7f131d11b4265a94fe25139194a565116e

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/common/error/internalErrorCode.ts

106lines · 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
66 // Activation errors
67 CouldNotFindLocationOfNodeDebugger = 801,
68 CouldNotFindWorkspace = 802,
69
70 // Inter Process Communication errors
71 ErrorWhileProcessingMessageInIPMSServer = 901,
72 ErrorNoPipeFound = 902,
73
74 // Validating user input errors
75 ExpectedIntegerValue = 1001,
76 ExpectedStringValue = 1002,
77 ExpectedBooleanValue = 1003,
78 ExpectedArrayValue = 1004,
79 ExpectedObjectValue = 1005,
80
81 // Exponent errors
82 RNVersionNotSupportedByExponent = 1101,
83 UserCancelledExpoLogin = 1102,
84
85 // Android errors
86 AndroidCouldNotInstallTheAppOnAnyAvailibleDevice = 1201,
87 AndroidShellCommandTimedOut = 1202,
88 AndroidProjectNotFound = 1203,
89 AndroidMoreThanOneDeviceOrEmulator = 1204,
90 AndroidFailedToLaunchTheSpecifiedActivity = 1205,
91
92 // Windows Phone errors
93 WinRNMPPluginIsNotInstalled = 1301,
94
95 // Debugger errors
96 SourcesStoragePathIsNullOrEmpty = 1401,
97 DebuggingWontWorkReloadJSAndReconnect = 1402,
98 ReconnectionToPackagerFailedCheckForErrorsOrRestartReactNative = 1403,
99 FailedToProcessMessageFromReactNativeApp = 1404,
100 FailedToPrepareJSRuntimeEnvironment = 1405,
101 FailedToSendMessageToTheReactNativeApp = 1406,
102 ReactNativeWorkerProcessThrownAnError = 1407,
103 CouldntImportScriptAt = 1408,
104 RNMessageWithMethodExecuteApplicationScriptDoesntHaveURLProperty = 1409,
105
106 }
107