Class Exceptions


  • @Deprecated
    public class Exceptions
    extends java.lang.Object
    Deprecated.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static java.util.regex.Pattern DISPLAY_P
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Exceptions()
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static java.lang.String causes​(java.lang.Throwable t)
      Deprecated.
       
      static java.lang.RuntimeException duck​(java.lang.Throwable t)
      Deprecated.
       
      static java.lang.String getDisplayTypeName​(java.lang.Throwable e)
      Deprecated.
      Return a display name of an exception type.
      private static <E extends java.lang.Throwable>
      void
      throwsUnchecked​(java.lang.Throwable throwable)
      Deprecated.
       
      static java.lang.String toString​(java.lang.Throwable t)
      Deprecated.
       
      static void unchecked​(RunnableWithException runnable)
      Deprecated.
       
      static <V> V unchecked​(java.util.concurrent.Callable<? extends V> callable)
      Deprecated.
       
      static java.lang.Throwable unrollCause​(java.lang.Throwable t)
      Deprecated.
       
      static java.lang.Throwable unrollCause​(java.lang.Throwable t, java.lang.Class<? extends java.lang.Throwable> unrollType)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

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

      • DISPLAY_P

        static final java.util.regex.Pattern DISPLAY_P
        Deprecated.
    • Constructor Detail

      • Exceptions

        private Exceptions()
        Deprecated.
    • Method Detail

      • unchecked

        public static <V> V unchecked​(java.util.concurrent.Callable<? extends V> callable)
        Deprecated.
      • duck

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

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

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

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

        public static java.lang.Throwable unrollCause​(java.lang.Throwable t)
        Deprecated.
      • causes

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

        public static java.lang.String getDisplayTypeName​(java.lang.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