microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
src/common/error/internalErrorCode.ts
104lines · 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 Egorov7 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, |
190e393cMeena Kunnathur Balakrishnan10 years ago | 46 | |
| 47 | // Miscellaneous errors | |
| 48 | TelemetryInitializationFailed = 701, | |
| 49 | ExtensionActivationFailed = 702, | |
| 50 | DebuggerStubLauncherFailed = 703, | |
| 51 | IntellisenseSetupFailed = 704, | |
| 52 | NodeDebuggerConfigurationFailed = 705, | |
| 53 | DebuggingFailed = 706, | |
2166bdabdigeff10 years ago | 54 | RNTempFolderDeletionFailed = 707, |
18d8ad2adigeff10 years ago | 55 | DebuggingFailedInNodeWrapper = 708, |
514df4f4Patricio Beltran10 years ago | 56 | PlatformNotSupported = 709, |
| 57 | WorkspaceNotFound = 710, | |
1c32fe84Patricio Beltran9 years ago | 58 | ExpectedExponentTunnelPath = 711, |
fc602bb6Yuri Skorokhodov7 years ago | 59 | NotAllSuccessPatternsMatched = 712, |
| 60 | CouldNotParsePackageVersion = 713, | |
| 61 | PackageNotFound = 714, | |
d7d405aeYuri Skorokhodov7 years ago | 62 | ReactDevtoolsIsNotInstalled = 715, |
2166bdabdigeff10 years ago | 63 | |
| 64 | // Activation errors | |
| 65 | CouldNotFindLocationOfNodeDebugger = 801, | |
0a86835dRedMickey6 years ago | 66 | CouldNotFindWorkspace = 802, |
df4bce40digeff10 years ago | 67 | |
d7d405aeYuri Skorokhodov7 years ago | 68 | // Inter Process Communication errors |
| 69 | ErrorWhileProcessingMessageInIPMSServer = 901, | |
| 70 | ErrorNoPipeFound = 902, | |
| 71 | | |
df4bce40digeff10 years ago | 72 | // Validating user input errors |
| 73 | ExpectedIntegerValue = 1001, | |
9e81e40fPatricio Beltran10 years ago | 74 | ExpectedStringValue = 1002, |
| 75 | ExpectedBooleanValue = 1003, | |
| 76 | ExpectedArrayValue = 1004, | |
| 77 | ExpectedObjectValue = 1005, | |
8b2be31edigeff10 years ago | 78 | |
d7d405aeYuri Skorokhodov7 years ago | 79 | // Exponent errors |
| 80 | RNVersionNotSupportedByExponent = 1101, | |
| 81 | UserCancelledExpoLogin = 1102, | |
| 82 | | |
| 83 | // Android errors | |
| 84 | AndroidCouldNotInstallTheAppOnAnyAvailibleDevice = 1201, | |
| 85 | AndroidShellCommandTimedOut = 1202, | |
| 86 | AndroidProjectNotFound = 1203, | |
| 87 | AndroidMoreThanOneDeviceOrEmulator = 1204, | |
| 88 | AndroidFailedToLaunchTheSpecifiedActivity = 1205, | |
| 89 | | |
| 90 | // Windows Phone errors | |
| 91 | WinRNMPPluginIsNotInstalled = 1301, | |
1758f9a6Yuri Skorokhodov7 years ago | 92 | |
| 93 | // Debugger errors | |
| 94 | SourcesStoragePathIsNullOrEmpty = 1401, | |
| 95 | DebuggingWontWorkReloadJSAndReconnect = 1402, | |
| 96 | ReconnectionToPackagerFailedCheckForErrorsOrRestartReactNative = 1403, | |
| 97 | FailedToProcessMessageFromReactNativeApp = 1404, | |
| 98 | FailedToPrepareJSRuntimeEnvironment = 1405, | |
| 99 | FailedToSendMessageToTheReactNativeApp = 1406, | |
| 100 | ReactNativeWorkerProcessThrownAnError = 1407, | |
| 101 | CouldntImportScriptAt = 1408, | |
| 102 | RNMessageWithMethodExecuteApplicationScriptDoesntHaveURLProperty = 1409, | |
| 103 | | |
17161993Meena Kunnathur Balakrishnan10 years ago | 104 | } |