- Sort Score
- Num 10 results
- Language All
Results 1161 - 1170 of 2,178 for catch (0.23 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/guava/src/com/google/common/util/concurrent/AggregateFuture.java
// We use getUninterruptibly over getDone as a micro-optimization, we know the future is done. collectOneValue(index, getUninterruptibly(future)); } catch (ExecutionException e) { handleException(e.getCause()); } catch (Throwable t) { // sneaky checked exception handleException(t); } } private void decrementCountAndMaybeComplete(Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 16K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java
CountDownLatch latch = new CountDownLatch(1); SettableFuture<?> future = SettableFuture.create(); Executor delegate = new Executor() { @Override public void execute(Runnable task) { if (future.set(null)) { awaitUninterruptibly(latch); } throw new RejectedExecutionException();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 10.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/query/FuzzyQueryCommandTest.java
float boost = 1.0f; try { fuzzyQueryCommand.execute(context, invalidQuery, boost); fail("Should throw InvalidQueryException"); } catch (InvalidQueryException e) { assertTrue(e.getMessage().contains("Unknown q:")); } } // Test convertFuzzyQuery with DEFAULT_FIELD @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 9.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java
builder.put(range1, 1).put(range2, 2); try { ImmutableRangeMap<Integer, Integer> unused = builder.build(); assertFalse(expectRejection); } catch (IllegalArgumentException e) { assertTrue(expectRejection); } } } } public void testGet() { for (Range<Integer> range1 : RANGES) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 9.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/crawler/transformer/FessTransformerTest.java
String[] newValues = new String[] { "item1", "item2", "item3", "item4", "item5" }; try { transformer.putResultDataBody(dataMap, "test", newValues); } catch (ArrayIndexOutOfBoundsException e) { fail("Array index calculation is incorrect: " + e.getMessage()); } Object result = dataMap.get("test"); assertTrue(result instanceof Object[]);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 10.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/VirtualHostHelperTest.java
}); try { HtmlNext result = virtualHostHelper.getVirtualHostPath(null); // If it doesn't throw an exception, the test passes assertTrue(true); } catch (Exception e) { // If it throws any exception, the test passes assertTrue(true); } } @Test public void test_getVirtualHostPath_withComplexPath() {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 11.8K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt
return try { URI(uri) } catch (e: URISyntaxException) { // Unlikely edge case: the URI has a forbidden character in the fragment. Strip it & retry. try { val stripped = uri.replace(Regex("[\\u0000-\\u001F\\u007F-\\u009F\\p{javaWhitespace}]"), "") URI.create(stripped) } catch (e1: Exception) { throw RuntimeException(e) // Unexpected! }Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 63.5K bytes - Click Count (0) -
docs/en/docs/advanced/websockets.md
When a WebSocket connection is closed, the `await websocket.receive_text()` will raise a `WebSocketDisconnect` exception, which you can then catch and handle like in this example. {* ../../docs_src/websockets_/tutorial003_py310.py hl[79:81] *} To try it out: * Open the app with several browser tabs. * Write messages from them.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Mar 07 09:29:03 GMT 2026 - 5.3K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/TimeLimiter.java
* * <pre> * TimeLimiter limiter = . . .; * TargetType proxy = limiter.newProxy( * target, TargetType.class, 50, TimeUnit.MILLISECONDS); * try { * return proxy.someMethod(); * } catch (UncheckedTimeoutException e) { * return DEFAULT_VALUE; * } * </pre> * * @param target the object to proxy * @param interfaceType the interface you wish the returned proxy to implement
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Jan 18 02:54:30 GMT 2025 - 8.2K bytes - Click Count (0) -
src/main/java/jcifs/pac/PacMac.java
if (key == null) { throw new PACDecodingException("Missing key"); } return calculateMacHMACAES(usage, key, data); } } catch (GeneralSecurityException e) { throw new PACDecodingException("Failed to calculate MAC", e); } }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 9K bytes - Click Count (0)