WebError class represents an unhandled exception thrown in the page. It is dispatched via the BrowserContext.onWebError(handler) event.
// Log all uncaught errors to the terminal
context.onWebError(webError -> {
System.out.println("Uncaught exception: " + webError.error());
});
// Navigate to a page with an exception.
page.navigate("data:text/html,<script>throw new Error('Test')</script>");
Methods errorAdded in: v1.38 webError.error
Unhandled error that was thrown.
Usage
Returns
pageAdded in: v1.38 webError.pageThe page that produced this unhandled exception, if any.
Usage
Returns
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4