Add exponential backoff utility
This commit is contained in:
9
source/errors.ts
Normal file
9
source/errors.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Error thrown when the maximum number of retries is hit in an exponential backoff
|
||||
*/
|
||||
export class ExponentialBackoffMaxRetriesHitError extends Error {
|
||||
constructor() {
|
||||
super('Exponential backoff: Max retries hit');
|
||||
this.name = 'ExponentialBackoffMaxRetriesHitError';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user