Class ExceptionUtil


  • class ExceptionUtil
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.reflect.Method METHOD_ADD_SUPPRESSED
      Throwable.addSuppressed(Throwable) added in Java 7.
    • Constructor Summary

      Constructors 
      Constructor Description
      ExceptionUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addSuppressed​(java.lang.Throwable t, java.lang.Throwable suppressed)
      If supported.
      private static java.lang.reflect.Method findAddSuppressed()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • METHOD_ADD_SUPPRESSED

        private static final java.lang.reflect.Method METHOD_ADD_SUPPRESSED
        Throwable.addSuppressed(Throwable) added in Java 7.
    • Constructor Detail

      • ExceptionUtil

        ExceptionUtil()
    • Method Detail

      • findAddSuppressed

        private static java.lang.reflect.Method findAddSuppressed()
      • addSuppressed

        public static void addSuppressed​(java.lang.Throwable t,
                                         java.lang.Throwable suppressed)
        If supported. appends the specified exception to the exceptions that were suppressed in order to deliver this exception.