Error thrown when a timeout occurs while waiting for a condition.
Creates a new TimeoutError instance.
TimeoutError
Optional
The timeout duration in milliseconds, if provided.
throw new TimeoutError(5000);// Throws: Timed out after waiting for 5000 ms Copy
throw new TimeoutError(5000);// Throws: Timed out after waiting for 5000 ms
Static
Optional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Create .stack property on a target object
Error thrown when a timeout occurs while waiting for a condition.