I want to throw the following exception to another method, but I don't know how to achieve this correctly.
public void startTimeoutHandler() throws TimeoutException
{
timer = new Timer();
timerTask = new TimerTask()
{
@Override
public void run()
{
throw new TimeoutException();
}
};
}
Thank you!