diff --git a/packages/property-provider/src/CredentialsProviderError.ts b/packages/property-provider/src/CredentialsProviderError.ts index 62a2dfcc020..48178db2e4c 100644 --- a/packages/property-provider/src/CredentialsProviderError.ts +++ b/packages/property-provider/src/CredentialsProviderError.ts @@ -17,17 +17,23 @@ export class CredentialsProviderError extends ProviderError { name = "CredentialsProviderError"; /** + * @override * @deprecated constructor should be given a logger. */ public constructor(message: string); /** + * @override * @deprecated constructor should be given a logger. */ public constructor(message: string, tryNextLink: boolean | undefined); /** + * @override * This signature is preferred for logging capability. */ public constructor(message: string, options: ProviderErrorOptionsType); + /** + * @override + */ public constructor(message: string, options: boolean | ProviderErrorOptionsType = true) { super(message, options as ProviderErrorOptionsType); Object.setPrototypeOf(this, CredentialsProviderError.prototype); diff --git a/packages/property-provider/src/TokenProviderError.ts b/packages/property-provider/src/TokenProviderError.ts index 9d3ddcf763f..6799830c7f0 100644 --- a/packages/property-provider/src/TokenProviderError.ts +++ b/packages/property-provider/src/TokenProviderError.ts @@ -13,18 +13,25 @@ import { ProviderError, ProviderErrorOptionsType } from "./ProviderError"; */ export class TokenProviderError extends ProviderError { name = "TokenProviderError"; + /** + * @override * @deprecated constructor should be given a logger. */ public constructor(message: string); /** + * @override * @deprecated constructor should be given a logger. */ public constructor(message: string, tryNextLink: boolean | undefined); /** + * @override * This signature is preferred for logging capability. */ public constructor(message: string, options: ProviderErrorOptionsType); + /** + * @override + */ public constructor(message: string, options: boolean | ProviderErrorOptionsType = true) { super(message, options as ProviderErrorOptionsType); Object.setPrototypeOf(this, TokenProviderError.prototype);