title: I want my thread to handle interruption, but I can't catch InterruptedException because it is a checked exception
body: <p>I have a thread in Java which calls </p>
  
  <pre><code>t.interrupt();
  </code></pre>
  
  <p>making t (a different thread) be interrupted. I want the "t" thread to then catch an <code>InterruptedException</code> but Eclipse won't let me put an <code>InterruptedException</code> in saying it's not thrown in the try body. How can I get the <code>InterruptedException</code> to be called? Am I using <code>t.interrupt()</code> wrong? </p>