public class ExceptionUtil extends Object
| 构造器和说明 |
|---|
ExceptionUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getStackTraceString(Throwable tr) |
static <T extends Throwable,R> |
throwAsUncheck(Throwable t) |
static <T extends Throwable,R> |
throwIt(T t) |
static <E extends Exception> |
throwToReturn(ActionE0<E> task) |
static <T,E extends Exception> |
throwToReturn(FuncE0<T,E> task) |
static boolean |
uncatch(ActionE0<?> task) |
static <T> T |
uncatch(FuncE0<T,?> task) |
static void |
uncheck(ActionE0<?> task) |
static <T> T |
uncheck(FuncE0<T,?> task) |
static <E extends Exception> |
wrapException(java.util.function.Function<Exception,E> wrapper,
ActionE0<?> task) |
public static <T extends Throwable,R> R throwIt(T t) throws T extends Throwable
T extends Throwablepublic static <T extends Throwable,R> R throwAsUncheck(Throwable t) throws T extends Throwable
T extends Throwablepublic static void uncheck(ActionE0<?> task)
public static <T> T uncheck(FuncE0<T,?> task)
public static boolean uncatch(ActionE0<?> task)
public static <T> T uncatch(FuncE0<T,?> task)
task - Copyright © 2018. All rights reserved.