Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,616 for threw (0.02 sec)

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

       *
       * <p>If {@code swallowIOException} is true then we never throw {@code IOException} but merely log
       * it.
       *
       * <p>Example:
       *
       * <pre>{@code
       * public void useStreamNicely() throws IOException {
       *   SomeStream stream = new SomeStream("foo");
       *   boolean threw = true;
       *   try {
       *     // ... code which does something with the stream ...
       *     threw = false;
       *   } finally {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/eventbus/SubscriberExceptionContext.java

        return eventBus;
      }
    
      /** @return The event object that caused the subscriber to throw. */
      public Object getEvent() {
        return event;
      }
    
      /** @return The object context that the subscriber was called on. */
      public Object getSubscriber() {
        return subscriber;
      }
    
      /** @return The subscribed method that threw the exception. */
      public Method getSubscriberMethod() {
        return subscriberMethod;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Apr 22 13:05:46 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/CloseablesTest.java

          throws IOException {
        try {
          Closeables.close(closeable, swallowException);
          if (expectThrown) {
            fail("Didn't throw exception.");
          }
        } catch (IOException e) {
          if (!expectThrown) {
            fail("Threw exception");
          }
        }
        verify(closeable).close();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/FlushablesTest.java

          throws IOException {
        try {
          Flushables.flush(flushable, swallowException);
          if (expectThrown) {
            fail("Didn't throw exception.");
          }
        } catch (IOException e) {
          if (!expectThrown) {
            fail("Threw exception");
          }
        }
        verify(flushable).flush();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.3K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/ReflectionFreeAssertThrows.java

            return caught;
          }
          throw new AssertionError(
              "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t);
        }
        if (userPassedSupplier) {
          throw new AssertionError(
              "expected to throw "
                  + expectedThrowable.getSimpleName()
                  + " but returned result: "
                  + result);
        } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:10:20 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  6. guava-testlib/test/com/google/common/testing/ReflectionFreeAssertThrows.java

            return caught;
          }
          throw new AssertionError(
              "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t);
        }
        if (userPassedSupplier) {
          throw new AssertionError(
              "expected to throw "
                  + expectedThrowable.getSimpleName()
                  + " but returned result: "
                  + result);
        } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 22 13:49:09 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/cache/CacheStats.java

       * values. This includes both successful load operations and those that threw exceptions. This is
       * defined as {@code loadSuccessCount + loadExceptionCount}.
       *
       * <p><b>Note:</b> the values of the metrics are undefined in case of overflow (though it is
       * guaranteed not to throw an exception). If you require specific handling, we recommend
       * implementing your own stats collector.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/cache/CacheStats.java

       * values. This includes both successful load operations and those that threw exceptions. This is
       * defined as {@code loadSuccessCount + loadExceptionCount}.
       *
       * <p><b>Note:</b> the values of the metrics are undefined in case of overflow (though it is
       * guaranteed not to throw an exception). If you require specific handling, we recommend
       * implementing your own stats collector.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/util/concurrent/Uninterruptibles.java

       *   <li>To get uninterruptibility and remove checked exceptions, use {@link
       *       Futures#getUnchecked}.
       * </ul>
       *
       * @throws ExecutionException if the computation threw an exception
       * @throws CancellationException if the computation was cancelled
       */
      @CanIgnoreReturnValue
      @ParametricNullness
      public static <V extends @Nullable Object> V getUninterruptibly(Future<V> future)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/ReflectionFreeAssertThrows.java

            return caught;
          }
          throw new AssertionError(
              "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t);
        }
        if (userPassedSupplier) {
          throw new AssertionError(
              "expected to throw "
                  + expectedThrowable.getSimpleName()
                  + " but returned result: "
                  + result);
        } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top