title: How to propagate exception from thread in java?
body: <p>Code:</p>
  
  <pre><code>    outerMethod {
          @Override
          public void run() {
                  innerMethod throws IOException
                  }
      }
  </code></pre>
  
  <p>Method that exceuted in thread throws checked exception - IOException.
  I need to handle this exception in main thread. 
  Like: </p>
  
  <pre><code>outerMethod() throws IOException
     {
          @Override
          public void run() {
                  innerMethod() throws IOException
                  }
      }
  </code></pre>
  
  <p>Is this possible? If no, what would be a better way to do this?</p>
  
  <p>Thanks.</p>