public class Throwables2 extends Object
Constructor and Description |
---|
Throwables2() |
Modifier and Type | Method and Description |
---|---|
static <T extends Throwable> |
containsThrowable(Class<T> throwableType) |
static <T extends Throwable> |
getFirstThrowableOfType(com.google.inject.CreationException e,
Class<T> clazz) |
static <T extends Throwable> |
getFirstThrowableOfType(com.google.inject.ProvisionException e,
Class<T> clazz) |
static <T extends Throwable> |
getFirstThrowableOfType(Throwable from,
Class<T> clazz) |
static <T extends Throwable> |
getFirstThrowableOfType(TransformParallelException e,
Class<T> clazz) |
static <T> T |
propagateAuthorizationOrOriginalException(Exception e) |
static <T> T |
propagateOrNull(Exception from) |
static Exception |
returnFirstExceptionIfInListOrThrowStandardExceptionOrCause(Class[] exceptionTypes,
Exception exception) |
public static <T extends Throwable> com.google.common.base.Predicate<Throwable> containsThrowable(Class<T> throwableType)
public static <T extends Throwable> T getFirstThrowableOfType(Throwable from, Class<T> clazz)
public static <T extends Throwable> T getFirstThrowableOfType(TransformParallelException e, Class<T> clazz)
public static <T extends Throwable> T getFirstThrowableOfType(com.google.inject.ProvisionException e, Class<T> clazz)
public static <T extends Throwable> T getFirstThrowableOfType(com.google.inject.CreationException e, Class<T> clazz)
public static <T> T propagateOrNull(Exception from)
public static Exception returnFirstExceptionIfInListOrThrowStandardExceptionOrCause(Class[] exceptionTypes, Exception exception) throws Exception
Exception
public static <T> T propagateAuthorizationOrOriginalException(Exception e)
Copyright © 2009-2012 jclouds. All Rights Reserved.