Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for UncheckedExecutionException (0.5 sec)

  1. android/guava/src/com/google/common/util/concurrent/UncheckedExecutionException.java

       *     constructor that omits the cause.
       */
      @Deprecated
      protected UncheckedExecutionException() {}
    
      /**
       * Creates a new instance with the given detail message and no cause.
       *
       * @deprecated Prefer {@linkplain UncheckedExecutionException(String, Throwable)} a constructor
       *     that accepts a cause: Users of this class typically expect for instances to have a non-null
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 17:52:19 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetUncheckedTest.java

          fail();
        } catch (UncheckedExecutionException expected) {
          assertEquals(CHECKED_EXCEPTION, expected.getCause());
        }
      }
    
      public void testGetUnchecked_ExecutionExceptionUnchecked() {
        try {
          getUnchecked(FAILED_FUTURE_UNCHECKED_EXCEPTION);
          fail();
        } catch (UncheckedExecutionException expected) {
          assertEquals(UNCHECKED_EXCEPTION, expected.getCause());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/FuturesGetUncheckedTest.java

          fail();
        } catch (UncheckedExecutionException expected) {
          assertEquals(CHECKED_EXCEPTION, expected.getCause());
        }
      }
    
      public void testGetUnchecked_ExecutionExceptionUnchecked() {
        try {
          getUnchecked(FAILED_FUTURE_UNCHECKED_EXCEPTION);
          fail();
        } catch (UncheckedExecutionException expected) {
          assertEquals(UNCHECKED_EXCEPTION, expected.getCause());
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/FakeTimeLimiter.java

        checkNotNull(callable);
        checkNotNull(timeoutUnit);
        try {
          return callable.call();
        } catch (RuntimeException e) {
          throw new UncheckedExecutionException(e);
        } catch (Exception e) {
          restoreInterruptIfIsInterruptedException(e);
          throw new ExecutionException(e);
        } catch (Error e) {
          throw new ExecutionError(e);
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/Futures.java

       * from the underlying computation in an {@code UncheckedExecutionException} or {@code
       * ExecutionError}.
       *
       * <p>For an uninterruptible {@code get} that preserves other exceptions, see {@link
       * Uninterruptibles#getUninterruptibly(Future)}.
       *
       * @throws UncheckedExecutionException if {@code get} throws an {@code ExecutionException} with an
       *     {@code Exception} as its cause
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/ExecutionError.java

     * ExecutionException}, the error's {@linkplain #getCause() cause} comes from a failed task,
     * possibly run in another thread. That cause should itself be an {@code Error}; if not, use {@code
     * ExecutionException} or {@link UncheckedExecutionException}. This allows the client code to
     * continue to distinguish between exceptions and errors, even when they come from other threads.
     *
     * @author Chris Povirk
     * @since 10.0
     */
    @GwtCompatible
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 17:52:19 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  7. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

    import com.google.common.cache.AbstractCache.StatsCounter;
    import com.google.common.collect.ImmutableMap;
    import com.google.common.util.concurrent.ExecutionError;
    import com.google.common.util.concurrent.UncheckedExecutionException;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.util.AbstractCollection;
    import java.util.AbstractSet;
    import java.util.Collection;
    import java.util.HashMap;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

          Throwable cause, Class<X> exceptionClass) throws X {
        if (cause instanceof Error) {
          throw new ExecutionError((Error) cause);
        }
        if (cause instanceof RuntimeException) {
          throw new UncheckedExecutionException(cause);
        }
        throw newWithCause(exceptionClass, cause);
      }
    
      /*
       * TODO(user): FutureChecker interface for these to be static methods on? If so, refer to it in
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/cache/LocalCache.java

    import com.google.common.util.concurrent.Futures;
    import com.google.common.util.concurrent.ListenableFuture;
    import com.google.common.util.concurrent.SettableFuture;
    import com.google.common.util.concurrent.UncheckedExecutionException;
    import com.google.common.util.concurrent.Uninterruptibles;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import com.google.errorprone.annotations.concurrent.GuardedBy;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/LocalCache.java

    import com.google.common.util.concurrent.Futures;
    import com.google.common.util.concurrent.ListenableFuture;
    import com.google.common.util.concurrent.SettableFuture;
    import com.google.common.util.concurrent.UncheckedExecutionException;
    import com.google.common.util.concurrent.Uninterruptibles;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import com.google.errorprone.annotations.concurrent.GuardedBy;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
Back to top