English · .NET
Appearance
English · .NET
Appearance
WebError class represents an unhandled exception thrown in the page. It is dispatched via the BrowserContext.WebError event.
// Log all uncaught errors to the terminal
context.WebError += (_, webError) =>
{
Console.WriteLine("Uncaught exception: " + webError.Error);
};Unhandled error that was thrown.
Returns
stringReturns
ObjectThe page that produced this unhandled exception, if any.
Returns
null | Page