Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/github-authentication/src/common/errors.ts
3320 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
export const TIMED_OUT_ERROR = 'Timed out';
7
8
// These error messages are internal and should not be shown to the user in any way.
9
export const USER_CANCELLATION_ERROR = 'User Cancelled';
10
export const NETWORK_ERROR = 'network error';
11
12
// This is the error message that we throw if the login was cancelled for any reason. Extensions
13
// calling `getSession` can handle this error to know that the user cancelled the login.
14
export const CANCELLATION_ERROR = 'Cancelled';
15
16