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