Package org.apache.http.util
Class ExceptionUtils
java.lang.Object
org.apache.http.util.ExceptionUtils
Deprecated.
(4.2) no longer used
The home for utility methods that handle various exception-related tasks.
- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Method
Deprecated.A reference to Throwable's initCause method, or null if it's not there in this JVM -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Method
Deprecated.static void
Deprecated.If we're running on JDK 1.4 or later, initialize the cause for the given throwable.
-
Field Details
-
INIT_CAUSE_METHOD
Deprecated.A reference to Throwable's initCause method, or null if it's not there in this JVM
-
-
Constructor Details
-
ExceptionUtils
private ExceptionUtils()Deprecated.
-
-
Method Details
-
getInitCauseMethod
Deprecated.Returns aMethod
allowing access toinitCause
method ofThrowable
, ornull
if the method does not exist.- Returns:
- A
Method
forThrowable.initCause
, ornull
if unavailable.
-
initCause
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.
-