title: WebView onPageFinished is being called when Page Not Available error. ¿Solution?
body: <p>I have a webview that must make a LOG when onReceivedError() is called. But the problem is that when i have very bad wifi connection (almost 100% loss) and the webview is showing a Page Not Available html error, the method onPageFinished is being called and onReceivedError is not being called</p>
  
  <p>How can this be solved? I want that when the page is not available the method onReceivedError gets called!</p>
  
  <pre><code>    webView.setWebViewClient(new WebViewClient() {   
  
      @Override
      public void onPageFinished(WebView view, String url) {
       super.onPageFinished(view, url);
       Log.d("WEBVIEw","ON PAGE FINISHED");
      }    
  
      @Override
      public void onReceivedError(WebView view, int errorCode,
        String description, String failingUrl) {
        Log.d("WEBVIEw","ON PAGE error");
      }
  
     });
  </code></pre>