How to thow and catch and timeout exception
<p>I tried to catch() timeout exception, after waited for some time to see one webelement.
But java says timeout exception is never throwable.</p>

<p>The below method waits for any webelement for some (given) time.
Even after the time has elapsed, and could not see the web element, the Catch block will be executed.``</p>

<p>I want to know exactly whether this method fails due to ONLY timedout exception. So, I tried to catch it using:</p>

<pre><code>Catch(TimeoutException te).
</code></pre>

<p>But Java says, this exception is not throwable.</p>

<pre><code>public boolean waitForElement(final String id, String[] resultsValues)
throws  Exception {
boolean returnValue = false;
try {
returnValue = new WebDriverWait......
}
catch(Exception e)
{
System.out.println(e.toString());
}
}
</code></pre>
