Path: blob/main/extensions/github-authentication/src/common/errors.ts
3320 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45export const TIMED_OUT_ERROR = 'Timed out';67// These error messages are internal and should not be shown to the user in any way.8export const USER_CANCELLATION_ERROR = 'User Cancelled';9export const NETWORK_ERROR = 'network error';1011// This is the error message that we throw if the login was cancelled for any reason. Extensions12// calling `getSession` can handle this error to know that the user cancelled the login.13export const CANCELLATION_ERROR = 'Cancelled';141516