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