Top Description Fields Constructors Methods
org.apache.http.util

public final Class ExceptionUtils

extends Object
Class Inheritance
Annotations
@Deprecated
Imports
java.lang.reflect.Method

Deprecated

(4.2) no longer used

The home for utility methods that handle various exception-related tasks.
Since
4.0

Field Summary

Modifier and TypeField and Description
private static final Method
INIT_CAUSE_METHOD

A reference to Throwable's initCause method, or null if it's not there in this JVM

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static Method

Returns:

A Method for Throwable.initCause, or null if unavailable.
getInitCauseMethod
()

Returns a Method allowing access to initCause method of Throwable, or null if the method does not exist.

public static void
initCause(final Throwable
The throwable.
throwable
,
final Throwable
The cause of the throwable.
cause
)

If we're running on JDK 1.4 or later, initialize the cause for the given throwable.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INIT_CAUSE_METHODback to summary
private static final Method INIT_CAUSE_METHOD

A reference to Throwable's initCause method, or null if it's not there in this JVM

Constructor Detail

ExceptionUtilsback to summary
private ExceptionUtils()

Method Detail

getInitCauseMethodback to summary
private static Method getInitCauseMethod()

Returns a Method allowing access to initCause method of Throwable, or null if the method does not exist.

Returns:Method

A Method for Throwable.initCause, or null if unavailable.

initCauseback to summary
public static void initCause(final Throwable throwable, final Throwable cause)

If we're running on JDK 1.4 or later, initialize the cause for the given throwable.

Parameters
throwable:Throwable

The throwable.

cause:Throwable

The cause of the throwable.