Custom waitFor timeout error

This commit is contained in:
2026-08-10 01:58:37 +00:00
parent 576a78022c
commit 91649558a8
2 changed files with 12 additions and 1 deletions
+10
View File
@@ -80,3 +80,13 @@ export class ExponentialBackoffNonIntegerError extends Error {
this.name = 'ExponentialBackoffNonIntegerError';
}
}
/**
* Error thrown when a waitFor timeout is reached
*/
export class WaitForTimeoutError extends Error {
constructor(type: string) {
super(`Timeout waiting for event "${type}"`);
this.name = 'WaitForTimeoutError';
}
}