Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 325 for throwable (0.4 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

        final Object result;
        final Throwable throwable;
    
        Response(String methodName, @Nullable Object result, @Nullable Throwable throwable) {
          this.methodName = methodName;
          this.result = result;
          this.throwable = throwable;
        }
    
        Object getResult() {
          if (throwable != null) {
            throw new AssertionError(throwable);
          }
          return result;
        }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/SneakyThrows.java

    /** Static utility method for unchecked throwing of any {@link Throwable}. */
    @GwtCompatible
    final class SneakyThrows<T extends Throwable> {
      /**
       * Throws {@code t} as if it were an unchecked {@link Throwable}.
       *
       * <p>This method is useful primarily when we make a reflective call to a method with no {@code
       * throws} clause: Java forces us to handle an arbitrary {@link Throwable} from that method,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Dec 30 18:44:22 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/SneakyThrows.java

    /** Static utility method for unchecked throwing of any {@link Throwable}. */
    @GwtCompatible
    final class SneakyThrows<T extends Throwable> {
      /**
       * Throws {@code t} as if it were an unchecked {@link Throwable}.
       *
       * <p>This method is useful primarily when we make a reflective call to a method with no {@code
       * throws} clause: Java forces us to handle an arbitrary {@link Throwable} from that method,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Dec 30 18:44:22 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/GwtFluentFutureCatchingSpecialization.java

       * In the GWT versions of the methods (below), every exceptionType parameter is required to be
       * Class<Throwable>. To handle only certain kinds of exceptions under GWT, you'll need to write
       * your own instanceof tests.
       */
    
      public final FluentFuture<V> catching(
          Class<Throwable> exceptionType,
          Function<? super Throwable, ? extends V> fallback,
          Executor executor) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/Platform.java

    final class Platform {
      static boolean isInstanceOfThrowableClass(Throwable t, Class<? extends Throwable> expectedClass) {
        /*
         * This method is used only by CatchingFuture, and CatchingFuture accepts only Throwable.class
         * under GWT.
         */
        return true;
      }
    
      static void restoreInterruptIfIsInterruptedException(Throwable t) {}
    
      static void interruptCurrentThread() {}
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 27 16:15:49 UTC 2025
    - 2K bytes
    - Viewed (0)
  6. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/GwtFuturesCatchingSpecialization.java

       * Class<Throwable>. To handle only certain kinds of exceptions under GWT, you'll need to write
       * your own instanceof tests.
       */
    
      public static <V extends @Nullable Object> ListenableFuture<V> catching(
          ListenableFuture<? extends V> input,
          Class<Throwable> exceptionType,
          Function<? super Throwable, ? extends V> fallback,
          Executor executor) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

      /**
       * Fails this future with the given Throwable if {@link #allMustSucceed} is true. Also, logs the
       * throwable if it is an {@link Error} or if {@link #allMustSucceed} is {@code true}, the
       * throwable did not cause this future to fail, and it is the first time we've seen that
       * particular Throwable.
       */
      private void handleException(Throwable throwable) {
        checkNotNull(throwable);
    
        if (allMustSucceed) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 16K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/FutureCallbackTest.java

        @Nullable private String value = null;
        @Nullable private Throwable failure = null;
        private boolean wasCalled = false;
        private final Object monitor = new Object();
    
        MockCallback(String expectedValue) {
          this.value = expectedValue;
        }
    
        MockCallback(Throwable expectedFailure) {
          this.failure = expectedFailure;
        }
    
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/base/LazyStackTraceBenchmark.java

          for (int i = 0; i < reps; i++) {
            int f = 0;
            Throwable t = new Throwable();
            for (StackTraceElement ste : getStackTrace(t)) {
              dummy |= ste == duh;
              if (f++ == breakAt) {
                break;
              }
            }
          }
          return dummy;
        }
    
        abstract List<StackTraceElement> getStackTrace(Throwable t);
      }
    
      @BeforeExperiment
      public void doBefore() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  10. guava-tests/benchmark/com/google/common/base/LazyStackTraceBenchmark.java

          for (int i = 0; i < reps; i++) {
            int f = 0;
            Throwable t = new Throwable();
            for (StackTraceElement ste : getStackTrace(t)) {
              dummy |= ste == duh;
              if (f++ == breakAt) {
                break;
              }
            }
          }
          return dummy;
        }
    
        abstract List<StackTraceElement> getStackTrace(Throwable t);
      }
    
      @BeforeExperiment
      public void doBefore() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.6K bytes
    - Viewed (0)
Back to top