Class Exceptions


  • public class Exceptions
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void close​(java.io.Closeable closeable, boolean suppressExceptions)  
      static <E extends java.lang.Exception>
      void
      suppressAndThrow​(E alreadyThrown, java.lang.Runnable run)  
      static <E extends java.lang.Exception>
      E
      suppressExceptions​(E alreadyThrown, java.lang.Runnable run)  
      • Methods inherited from class java.lang.Object

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

      • close

        public static void close​(java.io.Closeable closeable,
                                 boolean suppressExceptions)
      • suppressExceptions

        public static <E extends java.lang.Exception> E suppressExceptions​(E alreadyThrown,
                                                                           java.lang.Runnable run)
      • suppressAndThrow

        public static <E extends java.lang.Exception> void suppressAndThrow​(E alreadyThrown,
                                                                            java.lang.Runnable run)
                                                                     throws E extends java.lang.Exception
        Throws:
        E extends java.lang.Exception