microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
b46c1dea2f408007fb3c3ee6cc537d5f85fb0b2c

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/common/error/internalErrorCode.ts

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