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