Class ExceptionUtils


  • @Deprecated
    public final class ExceptionUtils
    extends java.lang.Object
    Deprecated.
    (4.2) no longer used
    The 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.Method INIT_CAUSE_METHOD
      Deprecated.
      A reference to Throwable's initCause method, or null if it's not there in this JVM
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ExceptionUtils()
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      private static java.lang.reflect.Method getInitCauseMethod()
      Deprecated.
      Returns a Method allowing access to initCause method of Throwable, or null if the method does not exist.
      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.
      • 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
        Deprecated.
        A reference to Throwable's initCause method, or null if it's not there in this JVM
    • Constructor Detail

      • ExceptionUtils

        private ExceptionUtils()
        Deprecated.
    • Method Detail

      • getInitCauseMethod

        private static java.lang.reflect.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​(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.