- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for getCausalChain (0.09 seconds)
-
android/guava-tests/test/com/google/common/base/ThrowablesTest.java
IllegalStateException ex = new IllegalStateException(re); assertThat(getCausalChain(ex)).containsExactly(ex, re, iae, sue).inOrder(); assertThat(Iterables.getOnlyElement(getCausalChain(sue))).isSameInstanceAs(sue); List<Throwable> causes = getCausalChain(ex); assertThrows(UnsupportedOperationException.class, () -> causes.add(new RuntimeException())); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 15K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/ThrowablesTest.java
IllegalStateException ex = new IllegalStateException(re); assertThat(getCausalChain(ex)).containsExactly(ex, re, iae, sue).inOrder(); assertThat(Iterables.getOnlyElement(getCausalChain(sue))).isSameInstanceAs(sue); List<Throwable> causes = getCausalChain(ex); assertThrows(UnsupportedOperationException.class, () -> causes.add(new RuntimeException())); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 15K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Throwables.java
* <pre> * Iterables.filter(Throwables.getCausalChain(e), IOException.class)); * </pre> * * @param throwable the non-null {@code Throwable} to extract causes from * @return an unmodifiable list containing the cause chain starting with {@code throwable} * @throws IllegalArgumentException if there is a loop in the causal chain */ public static List<Throwable> getCausalChain(Throwable throwable) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 20.6K bytes - Click Count (0) -
guava/src/com/google/common/base/Throwables.java
* <pre> * Iterables.filter(Throwables.getCausalChain(e), IOException.class)); * </pre> * * @param throwable the non-null {@code Throwable} to extract causes from * @return an unmodifiable list containing the cause chain starting with {@code throwable} * @throws IllegalArgumentException if there is a loop in the causal chain */ public static List<Throwable> getCausalChain(Throwable throwable) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 20.6K bytes - Click Count (0)