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