- Sort Score
- Num 10 results
- Language All
Results 1441 - 1450 of 2,684 for catch (0.03 seconds)
-
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) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/PlexusContainerCapsuleFactory.java
container .lookup(Injector.class) .discover(extension.entry().getClassRealm()); } catch (Throwable e) { failures.add(new IllegalStateException( "Injection failure in "Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Jul 03 14:18:26 GMT 2025 - 14.3K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java
class SmbTreeConnectionTraceTest { // Helper to build a minimal smb URL private static URL smbUrl(String spec) { try { return new URL(null, spec, new Handler()); } catch (MalformedURLException e) { throw new AssertionError("Failed to create SMB URL: " + spec, e); } } // Utility to build a minimal locator for connect testsCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.7K bytes - Click Count (0)