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