Class Throwables


  • public final class Throwables
    extends java.lang.Object
    Utilities for handling exceptions and other throwables.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static @NotNull java.lang.RuntimeException propagate​(@NotNull java.lang.Throwable e)  
      static <T extends java.lang.Exception>
      T
      propagate​(@NotNull java.lang.Throwable e, @NotNull java.lang.Class<T> allowed)  
      • Methods inherited from class java.lang.Object

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

      • propagate

        @NotNull
        public static @NotNull java.lang.RuntimeException propagate​(@NotNull
                                                                    @NotNull java.lang.Throwable e)
      • propagate

        @NotNull
        public static <T extends java.lang.Exception> T propagate​(@NotNull
                                                                  @NotNull java.lang.Throwable e,
                                                                  @NotNull
                                                                  @NotNull java.lang.Class<T> allowed)