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