java.lang.Object
net.anwiba.commons.lang.exception.Throwables
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends Throwable>
Estatic <E extends Throwable>
Estatic StringgetExtendedMessage(Throwable throwable) static voidstatic <E extends Throwable>
voidthrowIfNotEmpty(Function<Throwable, E> toException, List<Throwable> throwables) static <E extends Throwable>
voidthrowIfNotNull(Function<Throwable, E> toException, Throwable throwable) toException(Class<E> throwableClass) static StringtoStackTraceString(Throwable throwable)
-
Method Details
-
setThrowableMessageExtractor
-
getExtendedMessage
-
toStackTraceString
-
toException
-
concat
-
concat
-
throwIfNotEmpty
public static <E extends Throwable> void throwIfNotEmpty(Function<Throwable, E> toException, List<Throwable> throwables) throws E- Throws:
E extends Throwable
-
throwIfNotNull
public static <E extends Throwable> void throwIfNotNull(Function<Throwable, E> toException, Throwable throwable) throws E- Throws:
E extends Throwable
-