Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for addSuppressed (0.43 sec)

  1. android/guava/src/com/google/common/io/Closer.java

       * addSuppressed(Throwable) mechanism.
       */
      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: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/SequentialExchangeFinder.kt

              }
            }
            return plan.handleSuccess()
          } catch (e: IOException) {
            if (firstException == null) {
              firstException = e
            } else {
              firstException.addSuppressed(e)
            }
            if (!routePlanner.hasNext()) {
              throw firstException
            }
          }
        }
      }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnsh/ShellCommandRegistryHolder.java

                    }
                }
            }
            if (!exceptions.isEmpty()) {
                IllegalStateException ex = new IllegalStateException("Could not close commandRegistries");
                exceptions.forEach(ex::addSuppressed);
                throw ex;
            }
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Dec 17 09:50:45 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/exception/CrawlerSystemExceptionTest.java

            Exception suppressed1 = new IllegalArgumentException("Suppressed 1");
            Exception suppressed2 = new IOException("Suppressed 2");
            mainException.addSuppressed(suppressed1);
            mainException.addSuppressed(suppressed2);
    
            Throwable[] suppressedExceptions = mainException.getSuppressed();
            assertEquals(2, suppressedExceptions.length);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 20K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/TearDownStack.java

              logger.log(Level.INFO, "exception thrown during tearDown", t);
            } else {
              if (exception == null) {
                exception = t;
              } else {
                exception.addSuppressed(t);
              }
            }
          }
        }
        if (exception != null) {
          throwIfUnchecked(exception);
          throw new RuntimeException("failure during tearDown", exception);
        }
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 01 13:14:50 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/TearDownStack.java

              logger.log(Level.INFO, "exception thrown during tearDown", t);
            } else {
              if (exception == null) {
                exception = t;
              } else {
                exception.addSuppressed(t);
              }
            }
          }
        }
        if (exception != null) {
          throwIfUnchecked(exception);
          throw new RuntimeException("failure during tearDown", exception);
        }
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 01 13:14:50 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/resident/ResidentMavenInvoker.java

                }
            }
            if (!exceptions.isEmpty()) {
                InvokerException exception = new InvokerException("Could not cleanly shut down context pool");
                exceptions.forEach(exception::addSuppressed);
                throw exception;
            }
        }
    
        @Override
        protected MavenContext createContext(InvokerRequest invokerRequest) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Sep 11 17:20:46 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  8. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/SourcesRepository.kt

            openKotlinCompilationUnitsByRoot.clear()
            if (errors.isNotEmpty()) {
                throw Exception("Sources repository did not close cleanly").apply {
                    errors.forEach(this::addSuppressed)
                }
            }
        }
    
        /**
         * @return the source file and it's source root
         */
        fun sourceFileAndSourceRootFor(sourceFilePath: String): Pair<File, File> =
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Mon Apr 28 14:56:52 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinder.kt

            if (throwable != null) {
              if (throwable !is IOException) throw throwable
              if (firstException == null) {
                firstException = throwable
              } else {
                firstException.addSuppressed(throwable)
              }
            }
    
            val nextPlan = connectResult.nextPlan
            if (nextPlan != null) {
              // Try this plan's successor before deferred plans because it won the race!
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupContext.java

                    }
                }
            }
            if (causes != null) {
                InvokerException exception = new InvokerException("Unable to close context");
                causes.forEach(exception::addSuppressed);
                throw exception;
            }
        }
    
        public final void closeContainer() throws Exception {
            if (containerCapsuleManaged) {
                doCloseContainer();
            }
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jun 11 13:14:09 UTC 2025
    - 5.7K bytes
    - Viewed (0)
Back to top