Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 11 for Throwables (0.4 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt

            ).build()
        assertFailsWith<IOException> {
          getResponse(newRequest("/foo"))
        }.also { expected ->
          expected.assertSuppressed { throwables: List<Throwable>? ->
            assertThat(throwables!!.size).isEqualTo(1)
          }
        }
      }
    
      /**
       * When a pooled connection fails, don't blame the route. Otherwise pooled connection failures can
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 133.3K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

       */
      public <X extends Throwable> ClosingFuture<V> catching(
          Class<X> exceptionType, ClosingFunction<? super X, ? extends V> fallback, Executor executor) {
        return catchingMoreGeneric(exceptionType, fallback, executor);
      }
    
      // Avoids generic type capture inconsistency problems where |? extends V| is incompatible with V.
      private <X extends Throwable, W extends V> ClosingFuture<V> catchingMoreGeneric(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 101.7K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

            catchingAsync(failingFuture, Throwable.class, fallback, directExecutor());
        assertEquals(20, getDone(faultTolerantFuture).intValue());
        fallback.verifyCallCount(1);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // non-Throwable exceptionType
      public void testCatchingAsync_inputCancelledWithoutFallback() throws Exception {
        AsyncFunction<Throwable, Integer> fallback = unexpectedAsyncFunction();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

            catchingAsync(failingFuture, Throwable.class, fallback, directExecutor());
        assertEquals(20, getDone(faultTolerantFuture).intValue());
        fallback.verifyCallCount(1);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // non-Throwable exceptionType
      public void testCatchingAsync_inputCancelledWithoutFallback() throws Exception {
        AsyncFunction<Throwable, Integer> fallback = unexpectedAsyncFunction();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  5. okhttp/src/androidMain/baseline-prof.txt

    HSPLandroidx/startup/InitializationProvider;->onCreate()Z
    HSPLandroidx/tracing/Trace;->isEnabled()Z
    HSPLkotlin/Result$Failure;-><init>(Ljava/lang/Throwable;)V
    HSPLkotlin/Result;->exceptionOrNull-impl(Ljava/lang/Object;)Ljava/lang/Throwable;
    HSPLkotlin/ResultKt;->createFailure(Ljava/lang/Throwable;)Ljava/lang/Object;
    HSPLkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Dec 30 23:28:56 GMT 2024
    - 127.9K bytes
    - Click Count (1)
  6. android/guava/src/com/google/common/cache/LocalCache.java

          return futureValue.set(newValue);
        }
    
        @CanIgnoreReturnValue
        public boolean setException(Throwable t) {
          return futureValue.setException(t);
        }
    
        private ListenableFuture<V> fullyFailedFuture(Throwable t) {
          return immediateFailedFuture(t);
        }
    
        @Override
        public void notifyNewValue(@Nullable V newValue) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 143.5K bytes
    - Click Count (0)
  7. guava/src/com/google/common/cache/LocalCache.java

          return futureValue.set(newValue);
        }
    
        @CanIgnoreReturnValue
        public boolean setException(Throwable t) {
          return futureValue.setException(t);
        }
    
        private ListenableFuture<V> fullyFailedFuture(Throwable t) {
          return immediateFailedFuture(t);
        }
    
        @Override
        public void notifyNewValue(@Nullable V newValue) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 148.9K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        LocalCache.logger.addHandler(logHandler);
      }
    
      @Override
      public void tearDown() throws Exception {
        super.tearDown();
        LocalCache.logger.removeHandler(logHandler);
      }
    
      private Throwable popLoggedThrowable() {
        List<LogRecord> logRecords = logHandler.getStoredLogRecords();
        assertThat(logRecords).hasSize(1);
        LogRecord logRecord = logRecords.get(0);
        logHandler.clear();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 114.9K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        LocalCache.logger.addHandler(logHandler);
      }
    
      @Override
      public void tearDown() throws Exception {
        super.tearDown();
        LocalCache.logger.removeHandler(logHandler);
      }
    
      private Throwable popLoggedThrowable() {
        List<LogRecord> logRecords = logHandler.getStoredLogRecords();
        assertThat(logRecords).hasSize(1);
        LogRecord logRecord = logRecords.get(0);
        logHandler.clear();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 116.4K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/Maps.java

        // work-around of a compiler type inference quirk that prevents the
        // following code from being compiled:
        // Comparator<Class<?>> comparator = null;
        // Map<Class<? extends Throwable>, String> map = newTreeMap(comparator);
        return new TreeMap<>(comparator);
      }
    
      /**
       * Creates an {@code EnumMap} instance.
       *
       * @param type the key type for this map
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 157.6K bytes
    - Click Count (0)
Back to Top