Package org.apache.iceberg.util
Class Exceptions
- java.lang.Object
-
- org.apache.iceberg.util.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>
voidsuppressAndThrow(E alreadyThrown, java.lang.Runnable run)
static <E extends java.lang.Exception>
EsuppressExceptions(E alreadyThrown, java.lang.Runnable run)
-
-
-
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
-
-