Class Exceptions
- java.lang.Object
-
- cn.boboweike.carrot.utils.exceptions.Exceptions
-
public class Exceptions extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceExceptions.ThrowingBiConsumer<T,U>static interfaceExceptions.ThrowingBiFunction<T,U,R>static interfaceExceptions.ThrowingConsumer<T>static interfaceExceptions.ThrowingFunction<T,R>static interfaceExceptions.ThrowingRunnablestatic interfaceExceptions.ThrowingSupplier<T>
-
Constructor Summary
Constructors Constructor Description Exceptions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetStackTraceAsString(Throwable exception)static booleanhasCause(Throwable t, Class<? extends Throwable> exceptionClass)static <T> TretryOnException(Supplier<T> supplier, int maxRetries)
-