microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
src/common/error/internalErrorCode.ts
105lines · 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 { | |
| 5 | // Command Executor errors | |
898cb3c6Meena Kunnathur Balakrishnan10 years ago | 6 | CommandFailed = 101, |
| 7 | CommandFailedWithErrorCode = 102, | |
| 8 | PackagerStartFailed = 103, | |
| 9 | FailedToRunOnAndroid = 104, | |
| 10 | FailedToRunOnIos = 105, | |
| 11 | FailedToStartPackager = 106, | |
| 12 | FailedToStopPackager = 107, | |
5e651f3edigeff10 years ago | 13 | PackagerRunningInDifferentPort = 108, |
f2a58eefBret Johnson9 years ago | 14 | FailedToRestartPackager = 109, |
4787ec09Artem Egorov8 years ago | 15 | FailedToRunExponent = 110, |
7893fb7eJimmy Thomson9 years ago | 16 | FailedToPublishToExpHost = 111, |
fc602bb6Yuri Skorokhodov7 years ago | 17 | UnsupportedCommandStatus = 112, |
17161993Meena Kunnathur Balakrishnan10 years ago | 18 | |
| 19 | // Device Deployer errors | |
3c172a05Artem Egorov8 years ago | 20 | IOSDeployNotFound = 201, |
17161993Meena Kunnathur Balakrishnan10 years ago | 21 | |
| 22 | // Device Runner errors | |
| 23 | DeviceNotPluggedIn = 301, | |
| 24 | DeveloperDiskImgNotMountable = 302, | |
| 25 | UnableToLaunchApplication = 303, | |
| 26 | ApplicationLaunchTimedOut = 304, | |
| 27 | | |
| 28 | // iOS Platform errors | |
| 29 | IOSSimulatorNotLaunchable = 401, | |
d7d405aeYuri Skorokhodov7 years ago | 30 | IOSFoundMoreThanOneExecutablesCleanupBuildFolder = 402, |
| 31 | IOSCouldNotFoundExecutableInFolder = 403, | |
17161993Meena Kunnathur Balakrishnan10 years ago | 32 | |
| 33 | // Packager errors | |
| 34 | OpnPackagerLocationNotFound = 501, | |
| 35 | OpnPackagerNotFound = 502, | |
190e393cMeena Kunnathur Balakrishnan10 years ago | 36 | FailedToStopPackagerOnExit = 503, |
d124bf0eYuri Skorokhodov7 years ago | 37 | CannotAttachToPackagerCheckPackagerRunningOnPort = 504, |
| 38 | AnotherDebuggerConnectedToPackager = 505, | |
17161993Meena Kunnathur Balakrishnan10 years ago | 39 | |
| 40 | // React Native Project errors | |
| 41 | ProjectVersionNotParsable = 601, | |
| 42 | ProjectVersionUnsupported = 602, | |
190e393cMeena Kunnathur Balakrishnan10 years ago | 43 | ProjectVersionNotReadable = 603, |
d124bf0eYuri Skorokhodov7 years ago | 44 | NotInReactNativeFolderError = 604, |
0a86835dRedMickey6 years ago | 45 | CouldNotFindProjectVersion = 605, |
af1474acRedMickey6 years ago | 46 | ReactNativePackageIsNotInstalled = 606, |
190e393cMeena Kunnathur Balakrishnan10 years ago | 47 | |
| 48 | // Miscellaneous errors | |
| 49 | TelemetryInitializationFailed = 701, | |
| 50 | ExtensionActivationFailed = 702, | |
| 51 | DebuggerStubLauncherFailed = 703, | |
| 52 | IntellisenseSetupFailed = 704, | |
| 53 | NodeDebuggerConfigurationFailed = 705, | |
| 54 | DebuggingFailed = 706, | |
2166bdabdigeff10 years ago | 55 | RNTempFolderDeletionFailed = 707, |
18d8ad2adigeff10 years ago | 56 | DebuggingFailedInNodeWrapper = 708, |
514df4f4Patricio Beltran10 years ago | 57 | PlatformNotSupported = 709, |
| 58 | WorkspaceNotFound = 710, | |
1c32fe84Patricio Beltran9 years ago | 59 | ExpectedExponentTunnelPath = 711, |
fc602bb6Yuri Skorokhodov7 years ago | 60 | NotAllSuccessPatternsMatched = 712, |
| 61 | CouldNotParsePackageVersion = 713, | |
| 62 | PackageNotFound = 714, | |
d7d405aeYuri Skorokhodov7 years ago | 63 | ReactDevtoolsIsNotInstalled = 715, |
2166bdabdigeff10 years ago | 64 | |
| 65 | // Activation errors | |
| 66 | CouldNotFindLocationOfNodeDebugger = 801, | |
0a86835dRedMickey6 years ago | 67 | CouldNotFindWorkspace = 802, |
df4bce40digeff10 years ago | 68 | |
d7d405aeYuri Skorokhodov7 years ago | 69 | // Inter Process Communication errors |
| 70 | ErrorWhileProcessingMessageInIPMSServer = 901, | |
| 71 | ErrorNoPipeFound = 902, | |
| 72 | | |
df4bce40digeff10 years ago | 73 | // Validating user input errors |
| 74 | ExpectedIntegerValue = 1001, | |
9e81e40fPatricio Beltran10 years ago | 75 | ExpectedStringValue = 1002, |
| 76 | ExpectedBooleanValue = 1003, | |
| 77 | ExpectedArrayValue = 1004, | |
| 78 | ExpectedObjectValue = 1005, | |
8b2be31edigeff10 years ago | 79 | |
d7d405aeYuri Skorokhodov7 years ago | 80 | // Exponent errors |
| 81 | RNVersionNotSupportedByExponent = 1101, | |
| 82 | UserCancelledExpoLogin = 1102, | |
| 83 | | |
| 84 | // Android errors | |
| 85 | AndroidCouldNotInstallTheAppOnAnyAvailibleDevice = 1201, | |
| 86 | AndroidShellCommandTimedOut = 1202, | |
| 87 | AndroidProjectNotFound = 1203, | |
| 88 | AndroidMoreThanOneDeviceOrEmulator = 1204, | |
| 89 | AndroidFailedToLaunchTheSpecifiedActivity = 1205, | |
| 90 | | |
| 91 | // Windows Phone errors | |
| 92 | WinRNMPPluginIsNotInstalled = 1301, | |
1758f9a6Yuri Skorokhodov7 years ago | 93 | |
| 94 | // Debugger errors | |
| 95 | SourcesStoragePathIsNullOrEmpty = 1401, | |
| 96 | DebuggingWontWorkReloadJSAndReconnect = 1402, | |
| 97 | ReconnectionToPackagerFailedCheckForErrorsOrRestartReactNative = 1403, | |
| 98 | FailedToProcessMessageFromReactNativeApp = 1404, | |
| 99 | FailedToPrepareJSRuntimeEnvironment = 1405, | |
| 100 | FailedToSendMessageToTheReactNativeApp = 1406, | |
| 101 | ReactNativeWorkerProcessThrownAnError = 1407, | |
| 102 | CouldntImportScriptAt = 1408, | |
| 103 | RNMessageWithMethodExecuteApplicationScriptDoesntHaveURLProperty = 1409, | |
| 104 | | |
17161993Meena Kunnathur Balakrishnan10 years ago | 105 | } |