File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments