public class ExceptionUtils extends Object
| 构造器和说明 |
|---|
ExceptionUtils() |
public static void rethrow(Throwable t)
public static void rethrowIOException(Throwable t) throws IOException
Throwable in scenarios where the signatures allows only
IOExceptions (and RuntimeException and Error).
Throws this exception directly, if it is an IOException, a RuntimeException, or an Error. Otherwise it wraps it in an IOException and throws it.
t - The Throwable to be thrown.IOExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.