Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.http.util
Class ExceptionUtils  view ExceptionUtils download ExceptionUtils.java

java.lang.Object
  extended byorg.apache.http.util.ExceptionUtils

public class ExceptionUtils
extends java.lang.Object

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

Since:
3.0

Field Summary
private static java.lang.reflect.Method INIT_CAUSE_METHOD
          A reference to Throwable's initCause method, or null if it's not there in this JVM
 
Constructor Summary
private ExceptionUtils()
           
 
Method Summary
private static java.lang.reflect.Method getInitCauseMethod()
          Returns a Method allowing access to initCause method of java.lang.Throwable, or null if the method does not exist.
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INIT_CAUSE_METHOD

private static final java.lang.reflect.Method INIT_CAUSE_METHOD
A reference to Throwable's initCause method, or null if it's not there in this JVM

Constructor Detail

ExceptionUtils

private ExceptionUtils()
Method Detail

getInitCauseMethod

private static java.lang.reflect.Method getInitCauseMethod()
Returns a Method allowing access to initCause method of java.lang.Throwable, or null if the method does not exist.


initCause

public 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.