Class Exceptions

java.lang.Object
aQute.lib.exceptions.Exceptions

@Deprecated public class Exceptions extends Object
Deprecated.
  • Field Details

    • DISPLAY_P

      static final Pattern DISPLAY_P
      Deprecated.
  • Constructor Details

    • Exceptions

      private Exceptions()
      Deprecated.
  • Method Details

    • unchecked

      public static <V> V unchecked(Callable<? extends V> callable)
      Deprecated.
    • unchecked

      public static void unchecked(RunnableWithException runnable)
      Deprecated.
    • duck

      public static RuntimeException duck(Throwable t)
      Deprecated.
    • throwsUnchecked

      private static <E extends Throwable> void throwsUnchecked(Throwable throwable) throws E
      Deprecated.
      Throws:
      E extends Throwable
    • toString

      public static String toString(Throwable t)
      Deprecated.
    • unrollCause

      public static Throwable unrollCause(Throwable t, Class<? extends Throwable> unrollType)
      Deprecated.
    • unrollCause

      public static Throwable unrollCause(Throwable t)
      Deprecated.
    • causes

      public static String causes(Throwable t)
      Deprecated.
    • getDisplayTypeName

      public static String getDisplayTypeName(Throwable e)
      Deprecated.
      Return a display name of an exception type. This is basically removing the package and the Exception or Error suffix.
      Parameters:
      e - the exception
      Returns:
      a display name for its type