public class Exceptions extends Object
| 构造器和说明 |
|---|
Exceptions() |
public static <T extends Exception> T of(Throwable t, Class<T> type, Function<Throwable,T> builder)
public static Throwable getRootCauseUntil(@Nonnull Throwable t, Predicate<Throwable> predicate)
public static Throwable getRootCauseSafelyUntil(@Nonnull Throwable t, Predicate<Throwable> predicate)
public static void quietlyClose(AutoCloseable closeable)
public static void quietlyClose(AutoCloseable closeable, Throwable t)
public static void runQuietly(Runnable runnable)
public static <T> T getQuietly(Supplier<T> supplier)
public static void executeQuietly(Executable executable)
public static void executeQuietly(Executable executable, Throwable t)
public static <T> T callQuietly(Callable<T> callable)
Copyright © 2025 fossc. All rights reserved.