10 lines
340 B
TypeScript
10 lines
340 B
TypeScript
/**
|
|
* Error thrown when the maximum number of retries is hit in an exponential backoff
|
|
*/
|
|
export class ExponentialBackoffMaxRetriesHitError extends Error {
|
|
constructor(errors: Array<Error>) {
|
|
super('Exponential backoff: Max retries hit', { cause: errors });
|
|
this.name = 'ExponentialBackoffMaxRetriesHitError';
|
|
}
|
|
}
|