- Sort Score
- Num 10 results
- Language All
Results 321 - 330 of 1,902 for try (0.01 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/main/java/org/codelibs/fess/app/web/admin/elevateword/AdminElevatewordAction.java
return asStream("elevate.csv").contentTypeOctetStream().stream(out -> { final Path tempFile = ComponentUtil.getSystemHelper().createTempFile("fess-elevate-", ".csv").toPath(); try { try (Writer writer = new BufferedWriter(new OutputStreamWriter(Files.newOutputStream(tempFile), getCsvEncoding()))) { elevateWordService.exportCsv(writer); } catch (final Exception e) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Jan 23 23:57:26 GMT 2026 - 22.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/llm/LlmExceptionTest.java
boolean caught = false; try { throw new LlmException("Test exception"); } catch (final LlmException e) { caught = true; assertEquals("Test exception", e.getMessage()); } assertTrue(caught); } @Test public void test_catchAsFessSystemException() { boolean caught = false; try {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 05 04:19:06 GMT 2026 - 5.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/service/BadWordService.java
*/ public void importCsv(final Reader reader) { @SuppressWarnings("resource") final CsvReader csvReader = new CsvReader(reader, new CsvConfig()); try { List<String> list; csvReader.readValues(); // ignore header while ((list = csvReader.readValues()) != null) { String targetWord = getValue(list, 0);Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Nov 28 16:29:12 GMT 2025 - 8.6K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/math/ApacheBenchmark.java
} @Override public boolean noAddOverflow(int a, int b) { try { int unused = IntMath.checkedAdd(a, b); return true; } catch (ArithmeticException e) { return false; } } @Override public boolean noAddOverflow(long a, long b) { try { long unused = LongMath.checkedAdd(a, b); return true;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Jul 14 14:44:08 GMT 2025 - 6.9K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/math/ApacheBenchmark.java
} @Override public boolean noAddOverflow(int a, int b) { try { int unused = IntMath.checkedAdd(a, b); return true; } catch (ArithmeticException e) { return false; } } @Override public boolean noAddOverflow(long a, long b) { try { long unused = LongMath.checkedAdd(a, b); return true;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Jul 14 14:44:08 GMT 2025 - 6.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/sso/SsoResponseTypeTest.java
assertEquals(SsoResponseType.LOGOUT, SsoResponseType.valueOf("LOGOUT")); } @Test public void test_valueOf_invalidName() { // Test valueOf with invalid name throws exception try { SsoResponseType.valueOf("INVALID"); fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException e) { // Expected exception
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 6.3K bytes - Click Count (0) -
samples/crawler/src/main/java/okhttp3/sample/Crawler.java
} private void parallelDrainQueue(int threadCount) { ExecutorService executor = Executors.newFixedThreadPool(threadCount); for (int i = 0; i < threadCount; i++) { executor.execute(() -> { try { drainQueue(); } catch (Throwable e) { e.printStackTrace(); } }); } executor.shutdown(); } private void drainQueue() throws Exception {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Jul 23 00:58:06 GMT 2025 - 5K bytes - Click Count (0) -
src/test/java/jcifs/pac/kerberos/KerberosPacAuthDataTest.java
keys.put(PacSignature.ETYPE_AES256_CTS_HMAC_SHA1_96, kdcKey); // Mock Pac construction to bypass complex validation try (MockedConstruction<Pac> pacMock = Mockito.mockConstruction(Pac.class, (mock, context) -> { // Setup mock behavior PacLogonInfo mockLogonInfo = Mockito.mock(PacLogonInfo.class);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 6.3K bytes - Click Count (0) -
fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/util/CrawlerWebServer.java
server.setHandler(new Handler.Sequence(resourceHandler, new DefaultHandler())); } public void start() { try { server.start(); } catch (final Exception e) { throw new CrawlerSystemException(e); } } public void stop() { try { server.stop(); server.join(); } catch (final Exception e) {
Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Thu Jan 15 01:11:43 GMT 2026 - 5.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/LdapConfigurationExceptionTest.java
} @Test 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());Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 7.8K bytes - Click Count (0)