microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
aca27f7fdc5c73d80ef5f4556bfd268df7c06a69

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/common/error/internalErrorCode.ts

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