microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
src/common/error/internalErrorCode.ts
154lines · modeblame
17161993Meena Kunnathur Balakrishnan10 years ago | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT license. See LICENSE file in the project root for details. | |
| 3 | | |
| 4 | export enum InternalErrorCode { | |
341dba36Yuri Skorokhodov5 years ago | 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 | CommandFailedWithDetails = 113, | |
cfbe5cc9etatanova5 years ago | 19 | FailedToRunOnWindows = 114, |
| 20 | FailedToRunOnMacOS = 115, | |
e7a2c40dRedMickey4 years ago | 21 | DebuggingCommandFailed = 116, |
c7856462Heniker4 years ago | 22 | FailedToTestDevEnvironment = 117, |
36a21645Heniker4 years ago | 23 | CommandCanceled = 118, |
ee2a3185Ezio Li3 years ago | 24 | FailedToConfigEASBuild = 119, |
57fee98eEzio Li3 years ago | 25 | FailedToOpenProjectPage = 120, |
8e54e66aEzio Li3 years ago | 26 | FailedToRevertOpenModule = 121, |
65773981Ezio Li3 years ago | 27 | FailedToOpenRNUpgradeHelper = 122, |
9c71977dEzio Li2 years ago | 28 | FailedToInstallExpoGo = 123, |
24995442benjaminbi2 years ago | 29 | FailedToLaunchExpoWeb = 124, |
76faa508lexie0112 years ago | 30 | FailedToRunRNDoctor = 125, |
| 31 | FailedToRunExpoDoctor = 126, | |
5ee4cb45lexie0112 years ago | 32 | FailedToRunPrebuild = 127, |
1b6a9f9clexie0112 years ago | 33 | FailedToRunPrebuildClean = 128, |
cea20880lexie0112 years ago | 34 | FailedToReopenQRCode = 129, |
4a15a560lexie0111 years ago | 35 | FailedToEnableHermes = 130, |
29b51a5alexie0111 years ago | 36 | FailedToEnableExpoHermes = 131, |
a67b9bd1lexie0111 years ago | 37 | FailedToOpenExpoUpgradeHelper = 132, |
f1cb0a40lexie0111 years ago | 38 | FailedToKillPort = 133, |
790ecf20lexie0111 years ago | 39 | FaiedToSetNewArch = 134, |
5845d8fdEzio Li1 years ago | 40 | FailedToToggleNetworkView = 135, |
df1cd012lexie0111 years ago | 41 | |
341dba36Yuri Skorokhodov5 years ago | 42 | // Device Deployer errors |
| 43 | IOSDeployNotFound = 201, | |
| 44 | | |
| 45 | // Device Runner errors | |
| 46 | DeviceNotPluggedIn = 301, | |
| 47 | DeveloperDiskImgNotMountable = 302, | |
| 48 | ApplicationLaunchFailed = 303, | |
| 49 | ApplicationLaunchTimedOut = 304, | |
| 50 | FailedToStartAndroidEmulator = 305, | |
4cd25962JiglioNero4 years ago | 51 | TargetSelectionError = 306, |
| 52 | FailedToStartIOSSimulator = 307, | |
8f322bcdJiglioNero4 years ago | 53 | CouldNotRecognizeTargetType = 308, |
341dba36Yuri Skorokhodov5 years ago | 54 | |
| 55 | // iOS Platform errors | |
| 56 | IOSSimulatorNotLaunchable = 401, | |
| 57 | IOSFoundMoreThanOneExecutablesCleanupBuildFolder = 402, | |
| 58 | IOSCouldNotFoundExecutableInFolder = 403, | |
| 59 | IOSCouldNotFoundDeviceForDirectDebugging = 404, | |
4cd25962JiglioNero4 years ago | 60 | IOSThereIsNoAnyDebuggableTarget = 405, |
341dba36Yuri Skorokhodov5 years ago | 61 | |
| 62 | // Packager errors | |
| 63 | OpnPackagerLocationNotFound = 501, | |
| 64 | OpnPackagerNotFound = 502, | |
| 65 | FailedToStopPackagerOnExit = 503, | |
| 66 | CannotAttachToPackagerCheckPackagerRunningOnPort = 504, | |
| 67 | AnotherDebuggerConnectedToPackager = 505, | |
| 68 | | |
| 69 | // React Native Project errors | |
| 70 | ProjectVersionNotParsable = 601, | |
| 71 | ProjectVersionUnsupported = 602, | |
| 72 | ProjectVersionNotReadable = 603, | |
| 73 | NotInReactNativeFolderError = 604, | |
| 74 | CouldNotFindProjectVersion = 605, | |
| 75 | ReactNativePackageIsNotInstalled = 606, | |
| 76 | ReactNativeWindowsIsNotInstalled = 607, | |
| 77 | ReactNativemacOSIsNotInstalled = 608, | |
| 78 | | |
| 79 | // Miscellaneous errors | |
| 80 | TelemetryInitializationFailed = 701, | |
| 81 | ExtensionActivationFailed = 702, | |
| 82 | DebuggerStubLauncherFailed = 703, | |
| 83 | IntellisenseSetupFailed = 704, | |
| 84 | NodeDebuggerConfigurationFailed = 705, | |
| 85 | DebuggingFailed = 706, | |
| 86 | RNTempFolderDeletionFailed = 707, | |
| 87 | DebuggingFailedInNodeWrapper = 708, | |
| 88 | PlatformNotSupported = 709, | |
| 89 | WorkspaceNotFound = 710, | |
| 90 | ExpectedExponentTunnelPath = 711, | |
| 91 | NotAllSuccessPatternsMatched = 712, | |
| 92 | CouldNotParsePackageVersion = 713, | |
| 93 | PackageNotFound = 714, | |
| 94 | ReactDevtoolsIsNotInstalled = 715, | |
| 95 | CancellationTokenTriggered = 716, | |
c12fdaa8JiglioNero5 years ago | 96 | UnknownError = 717, |
ea42d400RedMickey5 years ago | 97 | WorkspaceIsNotTrusted = 718, |
36a21645Heniker4 years ago | 98 | UserInputCanceled = 719, |
341dba36Yuri Skorokhodov5 years ago | 99 | |
| 100 | // Activation errors | |
| 101 | CouldNotFindLocationOfNodeDebugger = 801, | |
| 102 | CouldNotFindWorkspace = 802, | |
| 103 | | |
| 104 | // Inter Process Communication errors | |
| 105 | ErrorWhileProcessingMessageInIPMSServer = 901, | |
| 106 | ErrorNoPipeFound = 902, | |
| 107 | | |
| 108 | // Validating user input errors | |
| 109 | ExpectedIntegerValue = 1001, | |
| 110 | ExpectedStringValue = 1002, | |
| 111 | ExpectedBooleanValue = 1003, | |
| 112 | ExpectedArrayValue = 1004, | |
| 113 | ExpectedObjectValue = 1005, | |
| 114 | | |
| 115 | // Exponent errors | |
| 116 | RNVersionNotSupportedByExponent = 1101, | |
| 117 | UserCancelledExpoLogin = 1102, | |
efb436fcRedMickey5 years ago | 118 | NgrokIsNotInstalledGlobally = 1103, |
341dba36Yuri Skorokhodov5 years ago | 119 | |
| 120 | // Android errors | |
| 121 | AndroidCouldNotInstallTheAppOnAnyAvailibleDevice = 1201, | |
| 122 | AndroidShellCommandTimedOut = 1202, | |
| 123 | AndroidProjectNotFound = 1203, | |
| 124 | AndroidMoreThanOneDeviceOrEmulator = 1204, | |
| 125 | AndroidFailedToLaunchTheSpecifiedActivity = 1205, | |
8df5011eYuri Skorokhodov5 years ago | 126 | AndroidCouldNotStartLogCatMonitor = 1206, |
| 127 | AndroidCouldNotStopLogCatMonitor = 1207, | |
| 128 | AndroidCouldNotFindActiveLogCatMonitor = 1208, | |
4cd25962JiglioNero4 years ago | 129 | AndroidThereIsNoAnyOnlineDebuggableTarget = 1209, |
341dba36Yuri Skorokhodov5 years ago | 130 | |
| 131 | // Windows Phone errors | |
| 132 | WinRNMPPluginIsNotInstalled = 1301, | |
60ad4ec0JiglioNero5 years ago | 133 | WinRunCommandFailed = 1302, |
341dba36Yuri Skorokhodov5 years ago | 134 | |
| 135 | // Debugger errors | |
| 136 | SourcesStoragePathIsNullOrEmpty = 1401, | |
| 137 | DebuggingWontWorkReloadJSAndReconnect = 1402, | |
| 138 | ReconnectionToPackagerFailedCheckForErrorsOrRestartReactNative = 1403, | |
| 139 | FailedToProcessMessageFromReactNativeApp = 1404, | |
| 140 | FailedToPrepareJSRuntimeEnvironment = 1405, | |
| 141 | FailedToSendMessageToTheReactNativeApp = 1406, | |
| 142 | ReactNativeWorkerProcessThrownAnError = 1407, | |
| 143 | CouldntImportScriptAt = 1408, | |
| 144 | RNMessageWithMethodExecuteApplicationScriptDoesntHaveURLProperty = 1409, | |
| 145 | CouldNotAttachToDebugger = 1410, | |
5c9b8eb8RedMickey5 years ago | 146 | CouldNotDirectDebugWithoutHermesEngine = 1411, |
341dba36Yuri Skorokhodov5 years ago | 147 | |
| 148 | // CDP Proxy errors | |
| 149 | CouldNotConnectToDebugTarget = 1501, | |
4bb0956eRedMickey5 years ago | 150 | |
| 151 | // Network Inspector errors | |
| 152 | CouldNotStartNetworkInspector = 1601, | |
| 153 | CouldNotStopNetworkInspector = 1602, | |
341dba36Yuri Skorokhodov5 years ago | 154 | } |