mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 09:59:47 -05:00
19 lines
641 B
TypeScript
19 lines
641 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
export function invalidProvider(name?: string): Error {
|
|
if (name) {
|
|
return new Error(`Invalid provider: ${name}`);
|
|
} else {
|
|
return new Error('Invalid provider');
|
|
}
|
|
}
|
|
|
|
export class UserCancelledConnectionError extends Error {
|
|
constructor(message?: string) {
|
|
super(message);
|
|
}
|
|
}
|