Search Options

Results per page
Sort
Preferred Languages
Advance

Results 2341 - 2350 of 3,054 for throws (0.04 sec)

  1. src/main/java/org/codelibs/fess/suggest/index/contents/DefaultContentsParser.java

     * to process and analyze the input data.</p>
     *
     * <p>It also handles the exclusion of search words based on certain criteria and manages the
     * maximum length of analyzed content.</p>
     *
     * <p>Methods in this class may throw SuggesterException in case of failures during the parsing process.</p>
     *
     * <p>Usage example:</p>
     * <pre>
     * {@code
     * DefaultContentsParser parser = new DefaultContentsParser();
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/io/CloseableUtil.java

         */
        protected CloseableUtil() {
        }
    
        private static final Logger logger = Logger.getLogger(CloseableUtil.class);
    
        /**
         * Closes a {@link Closeable}.
         * <p>
         * If an exception is thrown by {@link Closeable#close()}, an error message is logged. The exception is not rethrown. This prevents the original exception from being lost in situations like the following:
         * </p>
         * <pre>
         * InputStream is = ...;
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/Smb2TransformHeader.java

            } else if (nonce.length == 16) {
                // For GCM cipher, use full 16-byte nonce
                System.arraycopy(nonce, 0, this.nonce, 0, 16);
            } else {
                throw new IllegalArgumentException("Nonce must be 12 bytes (CCM) or 16 bytes (GCM)");
            }
            this.originalMessageSize = originalMessageSize;
            this.flags = flags;
            this.sessionId = sessionId;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/opensearch/client/SearchEngineClientExceptionTest.java

            }
            assertTrue(foundTestMethod);
        }
    
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            String message = "Throw and catch test";
    
            try {
                throw new SearchEngineClientException(message);
            } catch (SearchEngineClientException e) {
                assertEquals(message, e.getMessage());
                assertNull(e.getCause());
            }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfAbsentTester.java

        assertEquals(
            "computeIfAbsent(present, function) should return existing value",
            v0(),
            getMap()
                .computeIfAbsent(
                    k0(),
                    k -> {
                      throw new AssertionFailedError();
                    }));
        expectUnchanged();
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testComputeIfAbsent_functionReturnsNullNotInserted() {
        assertNull(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. 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)
  7. src/main/java/org/codelibs/core/io/WriterUtil.java

            assertArgumentNotNull("os", os);
            assertArgumentNotEmpty("encoding", encoding);
    
            try {
                return new OutputStreamWriter(os, encoding);
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        /**
         * Creates a {@link Writer} to output to a file with the default encoding.
         *
         * @param file the file (must not be {@literal null})
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/exception/LdapConfigurationExceptionTest.java

        }
    
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            String errorMessage = "LDAP server not reachable";
    
            try {
                throw new LdapConfigurationException(errorMessage);
            } catch (LdapConfigurationException e) {
                assertEquals(errorMessage, e.getMessage());
                assertNull(e.getCause());
            } catch (Exception e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java

                return new SuggestIndexResponse(items.length, items.length, result.getFailures(), System.currentTimeMillis() - start);
            } catch (final Exception e) {
                throw new SuggestIndexException("Failed to write items[" + items.length + "] to " + index, e);
            }
        }
    
        /**
         * Deletes a suggest item by ID.
         * @param id The ID of the item to delete.
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 34.8K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/collection/EmptyIterator.java

         */
        public EmptyIterator() {
        }
    
        @Override
        public void remove() {
            throw new ClUnsupportedOperationException("remove");
        }
    
        @Override
        public boolean hasNext() {
            return false;
        }
    
        @Override
        public T next() {
            throw new ClUnsupportedOperationException("next");
        }
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 1.3K bytes
    - Viewed (0)
Back to top