Class Throwables2


  • public class Throwables2
    extends Object
    General utilities used in jclouds code.
    • Constructor Detail

      • Throwables2

        public Throwables2()
    • Method Detail

      • containsThrowable

        public static <T extends Throwable> com.google.common.base.Predicate<Throwable> containsThrowable​(Class<T> throwableType)
      • getFirstThrowableOfType

        public static <T extends Throwable> T getFirstThrowableOfType​(Throwable from,
                                                                      Class<T> clazz)
      • propagateAuthorizationOrOriginalException

        public static <T> T propagateAuthorizationOrOriginalException​(Exception e)