- Sort Score
- Result 10 results
- Languages All
Results 651 - 660 of 1,808 for try (0.03 sec)
-
src/test/java/org/codelibs/fess/exception/ResultOffsetExceededExceptionTest.java
assertTrue(foundTestMethod); } public void test_throwAndCatch() { // Test throwing and catching the exception String expectedMessage = "Offset limit exceeded: 10000"; try { throw new ResultOffsetExceededException(expectedMessage); } catch (ResultOffsetExceededException e) { assertEquals(expectedMessage, e.getMessage()); assertNull(e.getCause());
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/SocksProxy.kt
fun play() { serverSocket = ServerSocket(0) executor.execute { val threadName = "SocksProxy ${serverSocket!!.localPort}" Thread.currentThread().name = threadName try { while (true) { val socket = serverSocket!!.accept() connectionCount.incrementAndGet() service(socket) } } catch (e: SocketException) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon May 05 16:01:00 UTC 2025 - 7.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/relatedcontent/AdminRelatedcontentAction.java
verifyCrudMode(form.crudMode, CrudMode.CREATE); validate(form, messages -> {}, this::asEditHtml); verifyToken(this::asEditHtml); getRelatedContent(form).ifPresent(entity -> { try { relatedContentService.store(entity); saveInfo(messages -> messages.addSuccessCrudCreateCrudTable(GLOBAL)); } catch (final Exception e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 16K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/FessEnvTest.java
return new Properties(); } }; try { emptyEnv.get("non.existent.property"); fail("Should throw ConfigPropertyNotFoundException"); } catch (ConfigPropertyNotFoundException e) { assertTrue(e.getMessage().contains("non.existent.property")); } try { emptyEnv.is("non.existent.boolean");
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 15.5K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt
@JvmStatic fun isAlpnBootEnabled(): Boolean = try { Class.forName("org.eclipse.jetty.alpn.ALPN", true, null) true } catch (cnfe: ClassNotFoundException) { false } val isCorrettoSupported: Boolean = try { // Trigger an early exception over a fatal error, prefer a RuntimeException over Error.Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 15.4K bytes - Viewed (1) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 46.8K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt
var random: String? = null lateinit var currentThread: Thread private val loggerHandler = object : Handler() { override fun publish(record: LogRecord) { // Try to avoid multi threading issues with concurrent requests if (Thread.currentThread() != currentThread) { return }Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat May 10 11:15:14 UTC 2025 - 10.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Serialization.java
field.setAccessible(true); } void set(T instance, Object value) { try { field.set(instance, value); } catch (IllegalAccessException impossible) { throw new AssertionError(impossible); } } void set(T instance, int value) { try { field.set(instance, value); } catch (IllegalAccessException impossible) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 8.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/opensearch/client/SearchEngineClient.java
dictionaryPath = fessConfig.getIndexDictionaryPrefix() + "/" + path; } else { dictionaryPath = path; } try { source = FileUtil.readUTF8(filePath); try (CurlResponse response = ComponentUtil.getCurlHelper().post("/_configsync/file").param("path", dictionaryPath).body(source).execute()) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sun Aug 31 08:19:00 UTC 2025 - 121.9K bytes - Viewed (1) -
src/test/java/org/codelibs/fess/util/ComponentUtilTest.java
} public void test_getJobExecutor_withSuffix() { try { ComponentUtil.getJobExecutor("testJobExecutor"); fail("Should throw exception"); } catch (Exception e) { // Expected } } public void test_getJobExecutor_withoutSuffix() { try { ComponentUtil.getJobExecutor("test");Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 19 23:49:30 UTC 2025 - 7.3K bytes - Viewed (0)