title: AsyncTask android - ExecutionException error
body: <p>I've got this code inside my main class:   </p>
  
  <pre><code>  public class vurlDownloader extends AsyncTask&lt;Void, Void, String&gt; {
  
      @Override
      protected String doInBackground(Void... params) {
  
          HttpClient httpClient = new DefaultHttpClient();
          HttpContext localContext = new BasicHttpContext();
          HttpGet httpGet = new HttpGet("http://url/video.html");
          HttpResponse response = null;
          try {
              response = httpClient.execute(httpGet, localContext);
          } catch (IOException e) {
              e.printStackTrace();
          }
          String result = "";
  
          BufferedReader reader = null;
          try {
              reader = new BufferedReader(
                      new InputStreamReader(
                              response.getEntity().getContent()
                      )
              );
          } catch (IOException e) {
              e.printStackTrace();
          }
  
  
          String line = null;
          try {
              while ((line = reader.readLine()) != null){
                  result += line + "\n";
              }
          } catch (IOException e) {
              e.printStackTrace();
          }
  
          return result;
  
      }
  
  }
  
  public String loadVurl(){
      String output = new vurlDownloader().execute().get();
      return output;
  }
  </code></pre>
  
  <p>and in this line<br>
  <code>String output = new vurlDownloader().execute().get();</code><br>
  Android Studio gives me strange reference (red underline): 
  Unhandled exceptions: <code>java.lang.InterruptedException, java.util.concurrent.Execution.Exception</code></p>
  
  <p>I don't quite understand this, becouse I've got simillar situation as here: <a href="https://stackoverflow.com/questions/10972114/android-getting-string-back-from-asynctask">How to get a string back from AsyncTask?</a> and for this person it works.</p>
  
  <p>Greetings!</p>