Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 461 - 470 of 2,240 for throwIf (0.05 seconds)

  1. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        }
    
        @Override
        public void await() throws InterruptedException {
          lock.lock();
          try {
            condition.await();
          } finally {
            lock.unlock();
          }
        }
    
        @Override
        public boolean await(long time, TimeUnit unit) throws InterruptedException {
          lock.lock();
          try {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 38.1K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/util/WebApiUtil.java

         * Throws any stored WebApiException if found.
         *
         * @throws WebApiException If a web API exception was previously stored
         */
        public static void validate() {
            LaRequestUtil.getOptionalRequest().map(req -> (WebApiException) req.getAttribute(WEB_API_EXCEPTION)).ifPresent(e -> {
                throw e;
            });
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

                if (throwException) {
                  throw new IllegalStateException("Fail");
                }
                return 25;
              });
    
      @Override
      protected void setUp() throws Exception {
        super.setUp();
    
        exec = newCachedThreadPool();
    
        task.addListener(listenerLatch::countDown, directExecutor());
      }
    
      @Override
      protected void tearDown() throws Exception {
        if (exec != null) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  4. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/BootstrapDns.kt

     */
    internal class BootstrapDns(
      private val dnsHostname: String,
      private val dnsServers: List<InetAddress>,
    ) : Dns {
      @Throws(UnknownHostException::class)
      override fun lookup(hostname: String): List<InetAddress> {
        if (this.dnsHostname != hostname) {
          throw UnknownHostException(
            "BootstrapDns called for $hostname instead of $dnsHostname",
          )
        }
    
        return dnsServers
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.3K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/core/beans/util/BeanMap.java

     */
    package org.codelibs.core.beans.util;
    
    import java.util.LinkedHashMap;
    
    import org.codelibs.core.exception.IllegalKeyOfBeanMapException;
    
    /**
     * A map with String keys that throws an exception when accessing (get) a non-existent key.
     *
     * @author higa
     */
    public class BeanMap extends LinkedHashMap<String, Object> {
    
        private static final long serialVersionUID = 1;
    
        /**
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat Jul 05 00:11:05 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/exception/CommandExecutionExceptionTest.java

        }
    
        @Test
        public void test_exceptionThrown() {
            // Test that the exception can be thrown and caught properly
            String expectedMessage = "Command execution error occurred";
    
            try {
                throw new CommandExecutionException(expectedMessage);
            } catch (CommandExecutionException e) {
                assertEquals(expectedMessage, e.getMessage());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/HashBiMap.java

       */
      @GwtIncompatible
      @J2ktIncompatible
        private void writeObject(ObjectOutputStream stream) throws IOException {
        stream.defaultWriteObject();
        Serialization.writeMap(this, stream);
      }
    
      @GwtIncompatible
      @J2ktIncompatible
        private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
        stream.defaultReadObject();
        int size = stream.readInt();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 37K bytes
    - Click Count (0)
  8. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Certificate.kt

          return certificates.single() as X509Certificate
        } catch (e: NoSuchElementException) {
          throw IllegalArgumentException("failed to decode certificate", e)
        } catch (e: IllegalArgumentException) {
          throw IllegalArgumentException("failed to decode certificate", e)
        } catch (e: GeneralSecurityException) {
          throw IllegalArgumentException("failed to decode certificate", e)
        }
      }
    }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.4K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/AbstractIterator.java

       * the first invocation of {@code hasNext} or {@code next} following each successful call to
       * {@code next}. Once the implementation either invokes {@code endOfData} or throws an exception,
       * {@code computeNext} is guaranteed to never be called again.
       *
       * <p>If this method throws an exception, it will propagate outward to the {@code hasNext} or
       * {@code next} invocation that invoked this method. Any further attempts to use the iterator will
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/job/IndexExportJobTest.java

        private Path tempDir;
    
        @Override
        protected void setUp(TestInfo testInfo) throws Exception {
            super.setUp(testInfo);
            indexExportJob = new IndexExportJob();
            tempDir = Files.createTempDirectory("indexExportJobTest");
        }
    
        @Override
        protected void tearDown(TestInfo testInfo) throws Exception {
            deleteRecursive(tempDir);
            super.tearDown(testInfo);
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 09:08:38 GMT 2026
    - 66.1K bytes
    - Click Count (0)
Back to Top