Search Options

Results per page
Sort
Preferred Languages
Advance

Results 641 - 650 of 2,976 for throw (0.08 sec)

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

                  okayToRun.await();
                } catch (InterruptedException e) {
                  Thread.currentThread().interrupt();
                  throw new RuntimeException(e);
                }
                runCalled.getAndIncrement();
              }
            },
            directExecutor());
        Runnable execute =
            new Runnable() {
              @Override
              public void run() {
                list.execute();
              }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/suggest/util/SuggestUtil.java

         * @return a string representing the bulk line for OpenSearch indexing
         * @throws SuggesterException if an I/O error occurs during the creation of the bulk line
         */
        public static String createBulkLine(final String index, final String type, final SuggestItem item) {
            if (item == null || item.getId() == null || item.getText() == null) {
                throw new SuggesterException("Invalid SuggestItem: item, id, or text is null");
            }
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/witness/MockWitnessService.java

        }
    
        /**
         * Get the address the service is listening on
         *
         * @return the service address
         * @throws IOException if address cannot be determined
         */
        public InetAddress getAddress() throws IOException {
            if (serverSocket == null) {
                throw new IOException("Service not started");
            }
            return InetAddress.getLocalHost();
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/EncodingHelper.java

         *
         * @param defaultEncoding the default encoding to set
         * @throws IllegalArgumentException if the default encoding is blank
         */
        public void setDefaultEncoding(final String defaultEncoding) {
            if (StringUtil.isBlank(defaultEncoding)) {
                throw new IllegalArgumentException("Default encoding must not be blank.");
            }
            this.defaultEncoding = defaultEncoding;
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/score/ScoreUpdaterTest.java

            @Override
            public long process() {
                return returnValue;
            }
        }
    
        // Test class that throws exception
        private static class ExceptionScoreBooster extends ScoreBooster {
            @Override
            public long process() {
                throw new RuntimeException("Test exception");
            }
        }
    
        // Test class with priority tracking
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbCopyUtilTest.java

                // Submit a write that will throw inside the writer thread
                w.write(payload, payload.length, out);
    
                // Give the writer thread time to process and set exception
                w.wait(100);
            }
    
            // Wait a bit more to ensure exception is captured
            Thread.sleep(100);
    
            // Act + Assert: checkException should throw the SmbException captured by the thread
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/suggest/Suggester.java

                return created;
            } catch (final Exception e) {
                if (logger.isDebugEnabled()) {
                    logger.debug("Failed to create index. index: {}", index, e);
                }
                throw new SuggesterException("Failed to create index.", e);
            }
        }
    
        /**
         * Creates a new index and replaces the current update alias with the new index.
         */
        public void createNextIndex() {
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 20.7K bytes
    - Viewed (3)
  8. android/guava-testlib/test/com/google/common/collect/testing/MinimalCollectionTest.java

                  @Override
                  public Collection<String> create(String[] elements) {
                    // TODO: MinimalCollection should perhaps throw
                    for (Object element : elements) {
                      if (element == null) {
                        throw new NullPointerException();
                      }
                    }
                    return MinimalCollection.of(elements);
                  }
                })
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 25 16:19:30 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/lease/Smb2LeaseKey.java

         *
         * @param key 16-byte array
         * @throws IllegalArgumentException if key is not 16 bytes
         */
        public Smb2LeaseKey(byte[] key) {
            if (key == null) {
                throw new IllegalArgumentException("Lease key cannot be null");
            }
            if (key.length != LEASE_KEY_SIZE) {
                throw new IllegalArgumentException("Lease key must be 16 bytes, got " + key.length);
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java

        public void testUpdateNonExistentSession() throws CIFSException {
            // With enforcement disabled, this should log a warning but not throw
            PreauthIntegrityService lenientService = new PreauthIntegrityService(secureRandom, PreauthIntegrityService.HASH_ALGO_SHA512, false);
    
            // Should not throw exception
            lenientService.updatePreauthHash("non-existent", "test".getBytes());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.1K bytes
    - Viewed (0)
Back to top