Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 503 for throwIt (0.41 sec)

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

       *
       * @throws X if {@code get} throws any checked exception except for an {@code ExecutionException}
       *     whose cause is not itself a checked exception
       * @throws UncheckedExecutionException if {@code get} throws an {@code ExecutionException} with a
       *     {@code RuntimeException} as its cause
       * @throws ExecutionError if {@code get} throws an {@code ExecutionException} with an {@code
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 64.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/SuppliersTest.java

        for (Thread t : threads) {
          t.join();
        }
    
        if (thrown.get() != null) {
          throw thrown.get();
        }
        assertEquals(1, count.get());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Thread
      @SuppressWarnings("ThreadPriorityCheck") // doing our best to test for races
      public void testSynchronizedSupplierThreadSafe() throws InterruptedException {
        Supplier<Integer> nonThreadSafe =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/CacheLoader.java

       * @throws Exception if unable to load the result
       * @throws InterruptedException if this method is interrupted. {@code InterruptedException} is
       *     treated like any other {@code Exception} in all respects except that, when it is caught,
       *     the thread's interrupt status is set
       */
      public abstract V load(K key) throws Exception;
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

       * null will be returned.
       *
       * @throws ParameterNotInstantiableException if the static methods cannot be invoked because the
       *     default value of a parameter cannot be determined.
       * @throws IllegalAccessException if the class isn't public or is nested inside a non-public
       *     class, preventing its methods from being accessible.
       * @throws InvocationTargetException if a static method threw exception.
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainFinallyHookTest.java

            customHook.hook(assistantDirector);
    
            // Verify no exception is thrown to the caller
            assertTrue(true);
        }
    
        // Test shutdownCommonsHttpClient private method with reflection
        public void test_shutdownCommonsHttpClient_reflection() throws Exception {
            // Access the private method using reflection
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java

                        return;
                    case 2:
                        throw new IllegalArgumentException("Invalid argument");
                    case 3:
                        throw new IllegalStateException("Invalid state");
                    case 4:
                        throw new NullPointerException("Null pointer");
                    default:
                        throw new RuntimeException("Generic error");
                    }
                }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/job/PurgeDocJobTest.java

        }
    
        public void test_execute_withException() {
            // Create mock SearchEngineClient that throws exception
            searchEngineClient = new SearchEngineClient() {
                @Override
                public long deleteByQuery(String index, QueryBuilder query) {
                    throw new RuntimeException("Delete operation failed");
                }
            };
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/exec/ThumbnailGeneratorTest.java

        }
    
        public void test_initializeProbes() {
            // Test that initializeProbes doesn't throw exception
            try {
                ThumbnailGenerator.initializeProbes();
                // If no exception thrown, test passes
                assertTrue(true);
            } catch (Exception e) {
                fail("initializeProbes should not throw exception: " + e.getMessage());
            }
        }
    
        public void test_main_withHelp() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

              public Integer computeNext() {
                if (haveBeenCalled) {
                  throw new AssertionError("Should not have been called again");
                } else {
                  haveBeenCalled = true;
                  throw sneakyThrow(new SomeCheckedException());
                }
              }
            };
    
        // The first time, the sneakily-thrown exception comes out
        assertThrows(SomeCheckedException.class, iter::hasNext);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

       * null will be returned.
       *
       * @throws ParameterNotInstantiableException if the static methods cannot be invoked because the
       *     default value of a parameter cannot be determined.
       * @throws IllegalAccessException if the class isn't public or is nested inside a non-public
       *     class, preventing its methods from being accessible.
       * @throws InvocationTargetException if a static method threw exception.
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
Back to top