public class ExceptionUtil
extends java.lang.Object
Constructor | Description |
---|---|
ExceptionUtil() |
Modifier and Type | Method | Description |
---|---|---|
static void |
initCause(java.lang.Throwable throwable,
java.lang.Throwable cause) |
If we're running on JDK 1.4 or later, initialize the cause for the given throwable.
|
static boolean |
isSocketTimeoutException(java.io.InterruptedIOException e) |
If SocketTimeoutExceptionClass is defined, returns true only if the
exception is an instance of SocketTimeoutExceptionClass.
|
public static void initCause(java.lang.Throwable throwable, java.lang.Throwable cause)
throwable
- The throwable.cause
- The cause of the throwable.public static boolean isSocketTimeoutException(java.io.InterruptedIOException e)
e
- an instance of InterruptedIOException class.Copyright (c) 1999-2005 - Apache Software Foundation