Throw Exponential Backoff error containing all execution errors
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
* 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');
|
||||
constructor(errors: Array<Error>) {
|
||||
super('Exponential backoff: Max retries hit', { cause: errors });
|
||||
this.name = 'ExponentialBackoffMaxRetriesHitError';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user