microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
0bfa4e58a91c5a692df46886a7dbb23ba6c1be3d

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/common/error/internalErrorCode.ts

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