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