Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 571 - 580 of 2,240 for throwIf (0.07 seconds)

  1. src/main/java/org/codelibs/fess/app/web/admin/storage/AdminStorageAction.java

            } catch (final Exception e) {
                throw new StorageException("Failed to update tags for " + objectName, e);
            }
        }
    
        /**
         * Retrieves the tags for a storage object from the storage system.
         *
         * @param objectName the name of the object to get tags for
         * @return map of tag key-value pairs
         * @throws StorageException if retrieving tags fails
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 13 02:21:17 GMT 2025
    - 22.1K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/base/FinalizableReferenceQueue.java

        /** Gets URL for base of path containing Finalizer.class. */
        URL getBaseUrl() throws IOException {
          // Find URL pointing to Finalizer.class file.
          String finalizerPath = FINALIZER_CLASS_NAME.replace('.', '/') + ".class";
          URL finalizerUrl = getClass().getClassLoader().getResource(finalizerPath);
          if (finalizerUrl == null) {
            throw new FileNotFoundException(finalizerPath);
          }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 19:26:59 GMT 2026
    - 15.8K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/api/engine/SearchEngineApiManager.java

            return servletPath.startsWith(pathPrefix);
        }
    
        @Override
        public void process(final HttpServletRequest request, final HttpServletResponse response, final FilterChain chain)
                throws IOException, ServletException {
            final RequestManager requestManager = ComponentUtil.getRequestManager();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:40 GMT 2026
    - 13.4K bytes
    - Click Count (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java

      private Target nullSingleton;
    
      @Override
      public void setUp() throws Exception {
        super.setUp();
    
        empty = new Target(emptyCollection(), "empty");
        /*
         * We test that nullSingleton.retainAll(disjointList) does NOT throw a
         * NullPointerException when disjointList does not, so we can't use
         * MinimalCollection, which throws NullPointerException on calls to
         * contains(null).
         */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 20:54:16 GMT 2025
    - 10.7K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/util/concurrent/AtomicLongMapBasherTest.java

     */
    @J2ktIncompatible // threads
    @GwtIncompatible // threads
    @NullUnmarked
    public class AtomicLongMapBasherTest extends TestCase {
      private final Random random = new Random(301);
    
      public void testModify_basher() throws Exception {
        int nTasks = 3000;
        int nThreads = 100;
        int getsPerTask = 1000;
        int deltaRange = 10000;
        String key = "key";
    
        AtomicLongMap<String> map = AtomicLongMap.create();
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jul 11 18:52:30 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/helper/JobHelper.java

                }
            } catch (final Exception e) {
                throw new ScheduledJobException("Failed to delete Job: " + scheduledJob, e);
            }
        }
    
        /**
         * Removes a scheduled job completely from the job manager.
         *
         * @param scheduledJob the scheduled job to remove
         * @throws ScheduledJobException if the job cannot be removed
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  7. android/guava-testlib/src/com/google/common/testing/TearDownStack.java

            if (suppressThrows) {
              logger.log(Level.INFO, "exception thrown during tearDown", t);
            } else {
              if (exception == null) {
                exception = t;
              } else {
                exception.addSuppressed(t);
              }
            }
          }
        }
        if (exception != null) {
          throwIfUnchecked(exception);
          throw new RuntimeException("failure during tearDown", exception);
        }
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Oct 01 13:14:50 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  8. guava-testlib/src/com/google/common/testing/TearDownStack.java

            if (suppressThrows) {
              logger.log(Level.INFO, "exception thrown during tearDown", t);
            } else {
              if (exception == null) {
                exception = t;
              } else {
                exception.addSuppressed(t);
              }
            }
          }
        }
        if (exception != null) {
          throwIfUnchecked(exception);
          throw new RuntimeException("failure during tearDown", exception);
        }
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Oct 01 13:14:50 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/util/concurrent/ForwardingExecutorServiceTest.java

      }
    
      public void testNoForwardingOfDefaultMethod() throws Exception {
        ExecutorService delegate =
            new ThreadPoolExecutor(0, Integer.MAX_VALUE, 60, SECONDS, new SynchronousQueue<>()) {
              @Override
              public void close() {
                throw new AssertionError(
                    "ForwardingExecutorService should have used the default method"
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 2.9K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

            new CacheLoader<String, String>() {
              @Override
              public String load(String key) throws InterruptedException {
                int behavior = random.nextInt(4);
                if (behavior == 0) { // throw an exception
                  exceptionCount.incrementAndGet();
                  throw new RuntimeException("fake exception for test");
                } else if (behavior == 1) { // return null
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 25.7K bytes
    - Click Count (0)
Back to Top