org.apache.commons.httpclient.util
public class ExceptionUtil extends Object
Since: 3.0
Method Summary | |
---|---|
static void | initCause(Throwable throwable, Throwable cause)
If we're running on JDK 1.4 or later, initialize the cause for the given throwable.
|
static boolean | isSocketTimeoutException(InterruptedIOException e)
If SocketTimeoutExceptionClass is defined, returns true only if the
exception is an instance of SocketTimeoutExceptionClass. |
Parameters: throwable The throwable. cause The cause of the throwable.
Parameters: e an instance of InterruptedIOException class.
Returns: true if the exception signals socket timeout, false otherwise.