Custom waitFor timeout error

This commit is contained in:
2026-08-10 02:32:08 +00:00
parent 78311487a4
commit 296ab4aadf
2 changed files with 11 additions and 1 deletions
+9
View File
@@ -0,0 +1,9 @@
/**
* 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';
}
}