Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for addSuppressed (0.08 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. okhttp/src/main/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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. 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 Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Jun 28 08:29:24 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/AsyncDns.kt

            if (allAddresses.isEmpty()) {
              val first = allExceptions.firstOrNull() ?: UnknownHostException("No results for $hostname")
    
              allExceptions.drop(1).forEach {
                first.addSuppressed(it)
              }
    
              throw first
            }
    
            allAddresses
          }
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. okhttp/src/main/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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http/CallServerInterceptor.kt

            )
          }
          return response
        } catch (e: IOException) {
          if (sendRequestException != null) {
            sendRequestException.addSuppressed(e)
            throw sendRequestException
          }
          throw e
        }
      }
    
      private fun shouldIgnoreAndWaitForRealResponse(
        code: Int,
        exchange: Exchange,
      ): Boolean =
        when {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/resident/DefaultResidentMavenInvoker.java

                }
            }
            if (!exceptions.isEmpty()) {
                InvokerException exception = new InvokerException("Could not cleanly shut down context pool");
                exceptions.forEach(exception::addSuppressed);
                throw exception;
            }
        }
    
        @Override
        protected LocalContext createContext(MavenInvokerRequest<MavenOptions> invokerRequest) {
            return residentContext
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java

                          try {
                            shutDown();
                          } catch (Exception ignored) {
                            restoreInterruptIfIsInterruptedException(ignored);
                            t.addSuppressed(ignored);
                          }
                          notifyFailed(t);
                          return;
                        }
                      }
    
                      shutDown();
                      notifyStopped();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProcessor.java

                    }
                }
                try {
                    return readXmlModel(pomFile, null, null, options);
                } catch (IOException e) {
                    exceptions.forEach(e::addSuppressed);
                    throw e;
                }
            } else {
                return readXmlModel(pomFile, input, reader, options);
            }
        }
    
        private org.apache.maven.api.model.Model readXmlModel(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top