Class ExceptionUtils

java.lang.Object
org.apache.http.util.ExceptionUtils

@Deprecated public final class ExceptionUtils extends Object
Deprecated.
(4.2) no longer used
The home for utility methods that handle various exception-related tasks.
Since:
4.0
  • Field Details

    • INIT_CAUSE_METHOD

      private static final Method 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

      private static Method getInitCauseMethod()
      Deprecated.
      Returns a Method allowing access to initCause method of Throwable, or null if the method does not exist.
      Returns:
      A Method for Throwable.initCause, or null if unavailable.
    • initCause

      public static void initCause(Throwable throwable, 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.