- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 131 for Suppressed (0.16 sec)
-
maven-slf4j-provider/src/test/java/org/apache/maven/slf4j/MavenSimpleLoggerTest.java
Exception causeOfSuppressed = new NoSuchElementException("cause of suppressed"); Exception suppressed = new IllegalStateException("suppressed", causeOfSuppressed); suppressed.addSuppressed(new IllegalArgumentException( "suppressed suppressed", new ArrayIndexOutOfBoundsException("suppressed suppressed cause"))); Exception cause = new IllegalArgumentException("cause");
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed Feb 28 23:31:59 UTC 2024 - 4K bytes - Viewed (0) -
platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/SuppressedExceptionTestingIntegrationTest.groovy
exception.addSuppressed(new RuntimeException("I am suppressed")); throw exception; } if (input.contains("bb")) { RuntimeException exception = new CustomException("This is a CUSTOM exception with suppressed one");
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 20:52:40 UTC 2023 - 6.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CloserTest.java
this.closeable = closeable; this.thrown = thrown; this.suppressed = suppressed; } @Override public boolean equals(@Nullable Object obj) { if (obj instanceof Suppression) { Suppression other = (Suppression) obj; return closeable.equals(other.closeable) && thrown.equals(other.thrown) && suppressed.equals(other.suppressed); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue May 07 15:26:58 UTC 2024 - 11.8K bytes - Viewed (0) -
platforms/core-runtime/logging/src/main/java/org/gradle/internal/problems/failure/DefaultFailure.java
private final List<StackTraceRelevance> frameRelevance; private final List<Failure> suppressed; private final List<Failure> causes; public DefaultFailure( Throwable original, List<StackTraceElement> stackTrace, List<StackTraceRelevance> frameRelevance, List<Failure> suppressed, List<Failure> causes ) { if (stackTrace.size() != frameRelevance.size()) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 23 17:15:42 UTC 2024 - 2.6K bytes - Viewed (0) -
platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/ExceptionPlaceholder.java
final List<? extends Throwable> causes; final List<? extends Throwable> suppressed; if (hasCycle) { // Ignore causes and suppressed in case of cycle causes = Collections.emptyList(); suppressed = Collections.emptyList(); } else { causes = extractCauses(throwable); suppressed = extractSuppressed(throwable); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 15 16:06:56 UTC 2024 - 16.6K bytes - Viewed (0) -
android/guava/src/com/google/common/io/Closer.java
*/ private static final Suppressor SUPPRESSING_SUPPRESSOR = (closeable, thrown, suppressed) -> { // ensure no exceptions from addSuppressed if (thrown == suppressed) { return; } try { thrown.addSuppressed(suppressed); } catch (Throwable e) { /*
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue May 07 15:26:58 UTC 2024 - 10.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharSourceTest.java
public void testCopyExceptions() { // test that exceptions are suppressed for (CharSource in : BROKEN_SOURCES) { int suppressed = runSuppressionFailureTest(in, newNormalCharSink()); assertEquals(0, suppressed); suppressed = runSuppressionFailureTest(in, BROKEN_CLOSE_SINK); assertEquals((in == BROKEN_OPEN_SOURCE) ? 0 : 1, suppressed); } for (CharSink out : BROKEN_SINKS) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue May 07 15:26:58 UTC 2024 - 10.5K bytes - Viewed (0) -
guava/src/com/google/common/io/Closer.java
*/ private static final Suppressor SUPPRESSING_SUPPRESSOR = (closeable, thrown, suppressed) -> { // ensure no exceptions from addSuppressed if (thrown == suppressed) { return; } try { thrown.addSuppressed(suppressed); } catch (Throwable e) { /*
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue May 07 15:26:58 UTC 2024 - 10.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallKotlinTest.kt
client.newCall(request).execute() }.also { expected -> expected.assertSuppressed { val suppressed = it.single() assertThat(suppressed).isInstanceOf(IOException::class.java) assertThat(suppressed).isNotSameAs(expected) } } } /** Confirm suppressed exceptions that occur after connecting are returned. */ @Test fun httpExceptionsAreReturnedAsSuppressed() {
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 8.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/ByteSourceTest.java
public void testCopyExceptions() { // test that exceptions are suppressed for (ByteSource in : BROKEN_SOURCES) { int suppressed = runSuppressionFailureTest(in, newNormalByteSink()); assertEquals(0, suppressed); suppressed = runSuppressionFailureTest(in, BROKEN_CLOSE_SINK); assertEquals((in == BROKEN_OPEN_SOURCE) ? 0 : 1, suppressed); } for (ByteSink out : BROKEN_SINKS) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue May 07 15:26:58 UTC 2024 - 15.4K bytes - Viewed (0)