title: java: can't rethrow exception: Unhandled exception type Exception
body: <p>I'd like to catch an exception, log it, set a flag, and the rethrow the same exception</p>
  
  <p>I have this code:</p>
  
  <pre><code>public Boolean doJobWithResult() {
      boolean result = true;
      final Feed feed = Feed.findById(feedId);
      try {
          feed.fetchContents();
      } catch (Exception ex) {
          result = false;
          Logger.info("fetching feed(%d) failed", feedId);
          throw ex;
      }
      return result;
  }
  </code></pre>
  
  <p>But eclipse complains at throw ex, telling that "Unhandled exception type Exception", and suggests me to add a try-catch block around it.</p>
  
  <p>In fact, I want the process calling this method to handle the exception, and not handle it myself... I just want to return true if everything goes ok, and log it if there's an exception</p>
  
  <p>On the other hand, I can wrap the exception inside another exception, but I can't throw the same one..</p>
  
  <p>any idea?</p>