title: Throw exception in TimerTask to another method
body: <p>I want to throw the following exception to another method, but I don't know how to achieve this correctly.</p>
  
  <pre><code>  public void startTimeoutHandler() throws TimeoutException
    {
      timer = new Timer();
      timerTask = new TimerTask()
      {
        @Override
        public void run()
        {
          throw new TimeoutException();        
        }
      };
    }
  </code></pre>
  
  <p>Thank you!</p>