- Sort Score
- Result 10 results
- Languages All
Results 1301 - 1310 of 2,073 for catch (0.06 sec)
-
android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java
RangeMap<Integer, Integer> rangeMap = TreeRangeMap.create(); rangeMap.put(range, 1); try { assertEquals(range, rangeMap.span()); assertFalse(range.isEmpty()); } catch (NoSuchElementException e) { assertTrue(range.isEmpty()); } } } public void testSpanTwoRanges() { for (Range<Integer> range1 : RANGES) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 30K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/job/PingSearchEngineJobTest.java
try { String result = pingSearchEngineJob.execute(); // Job should handle exception gracefully assertNotNull(result); } catch (Exception e) { // Exception is expected to be caught within the job assertTrue(e.getMessage().contains("Connection failed")); } }Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 18.8K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt
try { if (call.isCanceled()) { throw IOException("Canceled") } try { response = realChain.proceed(request) newRoutePlanner = true } catch (e: IOException) { // An attempt to communicate with a server failed. The request may have been sent. val isRecoverable = recover(e, call, request) call.eventListener.retryDecision(call, e, isRecoverable)Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue May 27 14:58:02 UTC 2025 - 12.4K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/XmlTransformerTest.java
accessResultDataImpl.setTransformerName("transformer"); try { final Object obj = xmlTransformer.getData(accessResultDataImpl); fail(); } catch (final CrawlerSystemException e) {} } public void test_getData_nullData() throws Exception { final String value = "<?xml version=\"1.0\"?>\n"// + "<doc>\n"//
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Mar 15 06:52:00 UTC 2025 - 13.5K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NbtAddress.java
* have a real NetBIOS name */ this.calledName = null; return getHostName(); } } catch (final UnknownHostException uhe) { this.calledName = null; } } else { this.calledName = null; } return this.calledName; }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 15.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Streams.java
// first as suppressed exceptions. We don't catch Error on the grounds that it should be allowed // to propagate immediately. Exception exception = null; for (BaseStream<?, ?> stream : toClose) { try { stream.close(); } catch (Exception e) { // sneaky checked exception if (exception == null) { exception = e;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 37K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/MemoryUtilTest.java
try { MemoryUtil.byteCountToDisplaySize(-1L); // If no exception, verify it handles negative as expected } catch (Exception e) { // Expected for negative values } // Test boundary values assertEquals("1bytes", MemoryUtil.byteCountToDisplaySize(1L));Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 11.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/general/AdminGeneralAction.java
}); saveInfo(messages -> messages.addSuccessSendTestmail(GLOBAL)); updateProperty(Constants.NOTIFICATION_TO_PROPERTY, form.notificationTo); systemProperties.store(); } catch (final Exception e) { logger.warn("Failed to send a test mail.", e); saveError(messages -> messages.addErrorsFailedToSendTestmail(GLOBAL)); }Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 13.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharSourceTest.java
*/ private static int runSuppressionFailureTest(CharSource in, CharSink out) { try { in.copyTo(out); fail(); } catch (IOException expected) { return expected.getSuppressed().length; } throw new AssertionError(); // can't happen } private static CharSource newNormalCharSource() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 11.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/RegularImmutableBiMap.java
try { checkNoConflictInKeyBucket(key, value, nextInKeyBucket, /* throwIfDuplicateKeys= */ true); checkNoConflictInValueBucket(value, entry, nextInValueBucket); } catch (BucketOverflowException e) { return JdkBackedImmutableBiMap.create(n, entryArray); } ImmutableMapEntry<K, V> newEntry = (nextInValueBucket == null && nextInKeyBucket == null)Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 11.1K bytes - Viewed (0)