Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 195 for throw (0.04 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/ftp/FtpClientTest.java

                    try {
                        Thread.sleep(2000);
                    } catch (InterruptedException e) {
                        throw new CrawlingAccessException(e);
                    }
                    return null;
                }
            };
            client.setAccessTimeout(1);
            try {
                client.doGet("ftp://localhost/test.txt");
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 18K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/suggest/util/SuggestUtilTest.java

        public void testDeleteScrollContext() {
            // Test with null scrollId (should not throw exception)
            SuggestUtil.deleteScrollContext(client, null);
    
            // Test with non-null scrollId
            String scrollId = "test_scroll_id";
            SuggestUtil.deleteScrollContext(client, scrollId);
            // No exception should be thrown
        }
    
        @Test
        public void testEscapeWildcardQuery() {
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/suggest/settings/SuggestSettings.java

            return tuples;
        }
    
        /**
         * Loads the index settings from a resource file.
         * @return The index settings as a string.
         * @throws IOException If an I/O error occurs.
         */
        protected String loadIndexSettings() throws IOException {
            final String dictionaryPath = System.getProperty("fess.dictionary.path", StringUtil.EMPTY);
            final StringBuilder sb = new StringBuilder();
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/EmlExtractor.java

         *
         * @param message the message to get the received date from
         * @return the received date or null if not found
         * @throws MessagingException if message access fails
         */
        protected static Date getReceivedDate(final Message message) throws MessagingException {
            final Date today = new Date();
            final String[] received = message.getHeader("received");
            if (received != null) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/AbstractTransformerTest.java

            @Override
            public ResultData transform(ResponseData responseData) {
                transformCallCount++;
                lastResponseData = responseData;
    
                if (throwException) {
                    throw new CrawlerSystemException("Test exception");
                }
    
                if (returnedResultData != null) {
                    return returnedResultData;
                }
    
                // Create default ResultData
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReader.java

                    exception = new SuggesterException(e);
                    scrollId = null;
                }
            }
    
            docCount.getAndAdd(queue.size());
    
            if (exception != null) {
                throw exception;
            }
        }
    
        /**
         * Calculates the limit document number based on total, percentage, and number.
         * @param total The total number of documents.
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 11K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/XpathTransformer.java

                if (responseData.getCharSet() != null) {
                    is.setEncoding(responseData.getCharSet());
                }
                parser.parse(is);
            } catch (final Exception e) {
                throw new CrawlingAccessException("Could not parse " + responseData.getUrl(), e);
            }
            final Document document = parser.getDocument();
    
            final StringBuilder buf = new StringBuilder(1000);
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  8. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/RuleManagerTest.java

            try {
                ruleManager.addRule(-1, rule2);
                fail("Should throw IndexOutOfBoundsException for negative index");
            } catch (IndexOutOfBoundsException e) {
                // Expected
            }
    
            try {
                ruleManager.addRule(5, rule2);
                fail("Should throw IndexOutOfBoundsException for index > size");
            } catch (IndexOutOfBoundsException e) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 23.8K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/RobotsTxtHelper.java

                            robotsTxt.addSitemap(value);
                        }
                    }
                }
    
                return robotsTxt;
            } catch (final Exception e) {
                throw new RobotsTxtException("Failed to parse robots.txt.", e);
            }
        }
    
        /**
         * Extracts the value from a line using the given pattern.
         * @param pattern the pattern to match against
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/HtmlExtractor.java

                for (final Map.Entry<String, String> entry : propertyMap.entrySet()) {
                    parser.setProperty(entry.getKey(), entry.getValue());
                }
            } catch (final Exception e) {
                throw new CrawlerSystemException("Invalid parser configuration.", e);
            }
    
            return parser;
        }
    
        /**
         * Gets a thread-local XPathAPI instance for thread-safe XPath evaluation.
         *
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 9.3K bytes
    - Viewed (0)
Back to top