类 ExceptionUtils


  • public class ExceptionUtils
    extends Object
    • 构造器详细资料

      • ExceptionUtils

        public ExceptionUtils()
    • 方法详细资料

      • rethrow

        public static void rethrow​(Throwable t)
      • rethrowIOException

        public static void rethrowIOException​(Throwable t)
                                       throws IOException
        Re-throws the given 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.
        抛出:
        IOException