Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhe committed May 24, 2024
1 parent 9d8a589 commit 79c449b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/property-provider/src/CredentialsProviderError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
7 changes: 7 additions & 0 deletions packages/property-provider/src/TokenProviderError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 79c449b

Please sign in to comment.