Skip to content

Commit c637682

Browse files
update
1 parent 3a33738 commit c637682

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/AzureAppConfigurationImpl.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
138138
// custom refresh interval
139139
if (refreshIntervalInMs !== undefined) {
140140
if (refreshIntervalInMs < MIN_REFRESH_INTERVAL_IN_MS) {
141-
throw new ArgumentError(`The refresh interval cannot be less than ${MIN_REFRESH_INTERVAL_IN_MS} milliseconds.`);
141+
throw new RangeError(`The refresh interval cannot be less than ${MIN_REFRESH_INTERVAL_IN_MS} milliseconds.`);
142142
} else {
143143
this.#kvRefreshInterval = refreshIntervalInMs;
144144
}
@@ -156,7 +156,7 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
156156
// custom refresh interval
157157
if (refreshIntervalInMs !== undefined) {
158158
if (refreshIntervalInMs < MIN_REFRESH_INTERVAL_IN_MS) {
159-
throw new ArgumentError(`The feature flag refresh interval cannot be less than ${MIN_REFRESH_INTERVAL_IN_MS} milliseconds.`);
159+
throw new RangeError(`The feature flag refresh interval cannot be less than ${MIN_REFRESH_INTERVAL_IN_MS} milliseconds.`);
160160
} else {
161161
this.#ffRefreshInterval = refreshIntervalInMs;
162162
}

src/refresh/RefreshTimer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export class RefreshTimer {
99

1010
constructor(interval: number) {
1111
if (interval <= 0) {
12-
throw new ArgumentError(`Refresh interval must be greater than 0. Given: ${this.#interval}`);
12+
throw new RangeError(`Refresh interval must be greater than 0. Given: ${this.#interval}`);
1313
}
1414

1515
this.#interval = interval;

0 commit comments

Comments
 (0)