Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 61 - 70 of 2,075 for throwIf (0.06 seconds)

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

       * @param len an int specifying the number of bytes to read.
       * @throws EOFException if this stream reaches the end before reading all the bytes.
       * @throws IOException if an I/O error occurs.
       */
      public static void readFully(InputStream in, byte[] b, int off, int len) throws IOException {
        int read = read(in, b, off, len);
        if (read != len) {
          throw new EOFException(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 31.1K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/base/AbstractIteratorTest.java

                  throw sneakyThrow(new SomeCheckedException());
                }
              }
            };
    
        // The first time, the sneakily-thrown exception comes out
        assertThrows(SomeCheckedException.class, iter::hasNext);
        // But the second time, AbstractIterator itself throws an ISE
        assertThrows(IllegalStateException.class, iter::hasNext);
      }
    
      public void testException() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 5.7K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/ContiguousSet.java

       * ContiguousSet}.
       *
       * @throws UnsupportedOperationException always
       * @deprecated Use {@link #create}.
       */
      @Deprecated
      @DoNotCall("Always throws UnsupportedOperationException")
      public static <E> ImmutableSortedSet.Builder<E> builder() {
        throw new UnsupportedOperationException();
      }
    
      // redeclare to help optimizers with b/310253115
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java

     * continues. See {@link QueueWorker#workOnQueue} for details.
     *
     * <p>{@code RuntimeException}s thrown by tasks are simply logged and the executor keeps trucking.
     * If an {@code Error} is thrown, the error will propagate and execution will stop until it is
     * restarted by a call to {@link #execute}.
     */
    @J2ktIncompatible
    @GwtIncompatible
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 10.6K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/app/web/base/login/FessLoginAssist.java

         *
         * @param resource the login handling resource to check permission for
         * @throws LoginRequiredException if login is required
         * @throws UserRoleLoginException if the user doesn't have required roles
         */
        @Override
        protected void checkPermission(final LoginHandlingResource resource) throws LoginRequiredException {
            if (FessAdminAction.class.isAssignableFrom(resource.getActionClass())) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 12.1K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

      }
    
      public void testSubscriberThrowsExceptionHandlerThrowsException() throws Exception {
        EventBus eventBus =
            new EventBus(
                new SubscriberExceptionHandler() {
                  @Override
                  public void handleException(Throwable exception, SubscriberExceptionContext context) {
                    throw new RuntimeException();
                  }
                });
        Object subscriber =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/eventbus/EventBusTest.java

      }
    
      public void testSubscriberThrowsExceptionHandlerThrowsException() throws Exception {
        EventBus eventBus =
            new EventBus(
                new SubscriberExceptionHandler() {
                  @Override
                  public void handleException(Throwable exception, SubscriberExceptionContext context) {
                    throw new RuntimeException();
                  }
                });
        Object subscriber =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/cache/AbstractCache.java

          invalidate(key);
        }
      }
    
      @Override
      public void invalidateAll() {
        throw new UnsupportedOperationException();
      }
    
      @Override
      public CacheStats stats() {
        throw new UnsupportedOperationException();
      }
    
      @Override
      public ConcurrentMap<K, V> asMap() {
        throw new UnsupportedOperationException();
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 9.1K bytes
    - Click Count (0)
  9. guava-testlib/src/com/google/common/testing/SloppyTearDown.java

      @Override
      public final void tearDown() {
        try {
          sloppyTearDown();
        } catch (Throwable t) {
          logger.log(Level.INFO, "exception thrown during tearDown: " + t.getMessage(), t);
        }
      }
    
      public abstract void sloppyTearDown() throws Exception;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 14:50:24 GMT 2024
    - 1.6K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

       *
       * <p>The default {@link AbstractFuture} implementation throws {@code InterruptedException} if the
       * current thread is interrupted during the call, even if the value is already available.
       *
       * @throws CancellationException {@inheritDoc}
       */
      @CanIgnoreReturnValue
      @Override
      @ParametricNullness
      public V get(long timeout, TimeUnit unit)
          throws InterruptedException, TimeoutException, ExecutionException {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 14:39:00 GMT 2026
    - 43.6K bytes
    - Click Count (0)
Back to Top