Package dev.bannmann.labs.core
Class ThrowableExtras
java.lang.Object
dev.bannmann.labs.core.ThrowableExtras
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleananyCauseInstanceOf(Throwable e, Class<?>... exceptionClasses) static <T> booleananyCauseMatches(Throwable e, Class<T> exceptionClass) static <T> booleananyCauseMatches(Throwable e, Class<T> exceptionClass, Predicate<T> predicate) static <T> Stream<T> filterCausalChain(Throwable e, Class<T> exceptionClass) static <T> Optional<T> findFirstInChain(Throwable e, Class<T> exceptionClass) static <T> Optional<T> findFirstInChain(Throwable e, Class<T> exceptionClass, Predicate<T> predicate)
-
Method Details
-
filterCausalChain
-
findFirstInChain
-
findFirstInChain
-
anyCauseMatches
-
anyCauseMatches
-
anyCauseInstanceOf
-