Skip to content

Commit

Permalink
chore: another adjustment to 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 5b6d5be commit 5f4ecb4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ts/packages/ts/src/stores/Configu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ export type ConfiguConfigStoreConfiguration = {
source?: string;
};

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

constructor(message: string, queueUrl: string) {
super(message);
Expand All @@ -21,7 +22,7 @@ class ConfiguConfigStoreApprovalQueueError extends Error {

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

Expand Down

0 comments on commit 5f4ecb4

Please sign in to comment.