title: How to re-throw an exception
body: <p>In my onCreate() I set an UncaughtException handler as follows:</p>
  
  <pre><code>Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
      @Override
      public void uncaughtException(Thread thread, Throwable throwable) {
         Log.e(getMethodName(2), "uncaughtException", throwable);
         android.os.Process.killProcess(android.os.Process.myPid());
      }
  });
  </code></pre>
  
  <p>It works OK, but I would like to get back the system's default behavior of displaying the force-close dialog to the user.</p>
  
  <p>If I try to replace the <code>KillProcess()</code> call with a <code>throw throwable</code> the compiler complains that I need to surround it with a try/catch.</p>
  
  <p>If I surround it with a try/catch:</p>
  
  <pre><code>Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
      @Override
      public void uncaughtException(Thread thread, Throwable throwable) {
          try {
              Log.e(getMethodName(2), "uncaughtException", throwable);
              throw throwable;
          }
          catch (Exception e) {           
          }
          finally {               
          }
      }
  });
  </code></pre>
  
  <p>The compiler still complains that <code>throw throwable</code> needs to be surrounded with a try/catch.</p>
  
  <p>How do I re-throw that throwable? Such that except for that informative <code>Log.e()</code> the system behaves exactly as before: As is I never set a default UncaughtException handler.</p>