Skip to content

Commit

Permalink
chore: adjust approval queue error class
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardAkman committed Jan 22, 2024
1 parent 3c9b051 commit 5b6d5be
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ts/packages/ts/src/stores/Configu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,19 @@ export type ConfiguConfigStoreConfiguration = {
source?: string;
};

export class ConfiguConfigStoreApprovalQueueError extends Error {
class ConfiguConfigStoreApprovalQueueError extends Error {
queueUrl: string;
readonly name: string = 'ConfiguConfigStoreApprovalQueueError';

constructor(message: string, queueUrl: string) {
super(message);
this.name = 'ConfiguConfigStoreApprovalQueueError';
this.queueUrl = queueUrl;
}
}

export class ConfiguConfigStore extends ConfigStore {
private client: Axios;
static readonly ApprovalQueueError = ConfiguConfigStoreApprovalQueueError;
constructor({ credentials, endpoint = `https://api.configu.com`, source = 'sdk' }: ConfiguConfigStoreConfiguration) {
super('configu');

Expand Down

0 comments on commit 5b6d5be

Please sign in to comment.