Package org.apache.http.util
Class ExceptionUtils
- java.lang.Object
-
- org.apache.http.util.ExceptionUtils
-
@Deprecated public final class ExceptionUtils extends java.lang.ObjectDeprecated.(4.2) no longer usedThe home for utility methods that handle various exception-related tasks.- Since:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.reflect.MethodINIT_CAUSE_METHODDeprecated.A reference to Throwable's initCause method, or null if it's not there in this JVM
-
Constructor Summary
Constructors Modifier Constructor Description privateExceptionUtils()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private static java.lang.reflect.MethodgetInitCauseMethod()Deprecated.Returns aMethodallowing access toinitCausemethod ofThrowable, ornullif the method does not exist.static voidinitCause(java.lang.Throwable throwable, java.lang.Throwable cause)Deprecated.If we're running on JDK 1.4 or later, initialize the cause for the given throwable.
-
-
-
Method Detail
-
getInitCauseMethod
private static java.lang.reflect.Method getInitCauseMethod()
Deprecated.Returns aMethodallowing access toinitCausemethod ofThrowable, ornullif the method does not exist.- Returns:
- A
MethodforThrowable.initCause, ornullif unavailable.
-
initCause
public static void initCause(java.lang.Throwable throwable, java.lang.Throwable cause)Deprecated.If we're running on JDK 1.4 or later, initialize the cause for the given throwable.- Parameters:
throwable- The throwable.cause- The cause of the throwable.
-
-