WebKit2.WebView::load-failed
connect('load-failed', function (webView, load_event: WebKit2.LoadEvent, failing_uri: String, error: void, ): Boolean);
Emitted when an error occurs during a load operation. If the error happened when starting to load data for a page load_event will be WebKit2.LoadEvent.started. If it happened while loading a committed data source load_event will be WebKit2.LoadEvent.committed. Since a load error causes the load operation to finish, the signal WebKitWebView::load-changed will always be emitted with WebKit2.LoadEvent.finished event right after this one.
By default, if the signal is not handled, a stock error page will be displayed. You need to handle the signal if you want to provide your own error page.
- webView
instance of WebKit2.WebView that is emitting the signal
- load_event
the WebKit2.LoadEvent of the load operation
- failing_uri
the URI that failed to load
- error
the GLib.Error that was triggered
- Returns
true to stop other handlers from being invoked for the event. false to propagate the event further.