- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 17 for addSuppressed (0.2 seconds)
-
android/guava/src/com/google/common/io/Closer.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 10.3K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/PlexusContainerCapsuleFactory.java
IllegalStateException mavenDiFailed = new IllegalStateException( "Maven dependency injection failed for at least one of the registered core extension"); failures.forEach(mavenDiFailed::addSuppressed); throw mavenDiFailed; } container.getLoggerManager().setThresholds(toPlexusLoggingLevel(context.loggerLevel)); customizeContainer(context, container);
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Jul 03 14:18:26 GMT 2025 - 14.3K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 10.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/CloserTest.java
*/ private void assertSuppressed(Suppression... expected) { assertEquals(ImmutableList.copyOf(expected), suppressor.suppressions); } // TODO(cpovirk): Just use addSuppressed+getSuppressed now that we can rely on it. /** Suppressor that records suppressions. */ private static class TestSuppressor implements Closer.Suppressor {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 11.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/CloserTest.java
*/ private void assertSuppressed(Suppression... expected) { assertEquals(ImmutableList.copyOf(expected), suppressor.suppressions); } // TODO(cpovirk): Just use addSuppressed+getSuppressed now that we can rely on it. /** Suppressor that records suppressions. */ private static class TestSuppressor implements Closer.Suppressor {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 11.9K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilCommon.kt
internal fun <E> MutableList<E>.addIfAbsent(element: E) { if (!contains(element)) add(element) } internal fun Exception.withSuppressed(suppressed: List<Exception>): Throwable = apply { for (e in suppressed) addSuppressed(e) } internal inline fun <T> Iterable<T>.filterList(predicate: T.() -> Boolean): List<T> { var result: List<T> = emptyList() for (i in this) { if (predicate(i)) {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon May 05 16:01:00 GMT 2025 - 10.1K bytes - Click Count (0) -
src/test/java/jcifs/RuntimeCIFSExceptionTest.java
RuntimeCIFSException mainException = new RuntimeCIFSException("Main error"); RuntimeException suppressedException = new RuntimeException("Suppressed error"); // When mainException.addSuppressed(suppressedException); // Then Throwable[] suppressed = mainException.getSuppressed(); assertEquals(1, suppressed.length); assertEquals(suppressedException, suppressed[0]); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/ResultOffsetExceededExceptionTest.java
ResultOffsetExceededException suppressedException = new ResultOffsetExceededException("Suppressed exception"); mainException.addSuppressed(suppressedException); Throwable[] suppressed = mainException.getSuppressed(); assertNotNull(suppressed); assertEquals(1, suppressed.length);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 9.9K bytes - Click Count (0) -
build-tools-internal/src/main/groovy/org/elasticsearch/gradle/internal/test/AntFixture.groovy
} logger.error("-----------------------------------------") GradleException toThrow = new GradleException(msg) for (Exception e : suppressed) { toThrow.addSuppressed(e) } throw toThrow } /** Adds a task to kill an elasticsearch node with the given pidfile */ private TaskProvider<AntFixtureStop> createStopTask() {Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 10.1K bytes - Click Count (0) -
src/main/java/jcifs/util/transport/Transport.java
} catch (final IOException ioe) { log.warn("sendrecv failed", ioe); try { disconnect(true); } catch (final IOException ioe2) { ioe.addSuppressed(ioe2); log.info("disconnect failed", ioe2); } throw ioe; } catch (final InterruptedException ie) { throw new TransportException(ie); } finally {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 27.8K bytes - Click Count (0)