- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 64 for catching (0.06 sec)
-
android/guava/src/com/google/common/util/concurrent/FluentFuture.java
@Partially.GwtIncompatible("AVAILABLE but requires exceptionType to be Throwable.class") public final <X extends Throwable> FluentFuture<V> catching( Class<X> exceptionType, Function<? super X, ? extends V> fallback, Executor executor) { return (FluentFuture<V>) Futures.catching(this, exceptionType, fallback, executor); } /** * Returns a {@code Future} whose result is taken from this {@code Future} or, if this {@code
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 19.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/ContainerNotAvailableExceptionTest.java
assertEquals(middleCause, topException.getCause()); assertEquals(rootCause, topException.getCause().getCause()); } public void test_throwAndCatch() { // Test throwing and catching the exception String componentName = "cacheManager"; try { throw new ContainerNotAvailableException(componentName); } catch (ContainerNotAvailableException e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/InvalidAccessTokenExceptionTest.java
assertTrue(exception instanceof Exception); assertTrue(exception instanceof Throwable); } public void test_throwAndCatch() { // Test throwing and catching the exception String expectedType = "OAuth"; String expectedMessage = "OAuth token is invalid"; try { throw new InvalidAccessTokenException(expectedType, expectedMessage);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 10.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Cut.java
// same value. below comes before above return Boolean.compare(this instanceof AboveValue, that instanceof AboveValue); } C endpoint() { return endpoint; } @SuppressWarnings("unchecked") // catching CCE @Override public boolean equals(@Nullable Object obj) { if (obj instanceof Cut) { // It might not really be a Cut<C>, but we'll catch a CCE if it's not Cut<C> that = (Cut<C>) obj; try {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 12.4K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt
* corresponding entries will be dropped from the cache. If an error occurs while writing a cache * value, the edit will fail silently. Callers should handle other problems by catching * `IOException` and responding appropriately. * * @constructor Create a cache which will reside in [directory]. This cache is lazily initialized on * first access and will be created if it does not exist.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed May 28 23:28:25 UTC 2025 - 34.7K bytes - Viewed (0) -
CHANGELOG.md
_2025-07-07_ * New: `Response.peekTrailers()`. When we changed `Response.trailers()` to block instead of throwing in 5.0.0, we inadvertently removed the ability for callers to peek the trailers (by catching the `IllegalStateException` if they weren't available). This new API restores that capability. * Fix: Don't crash on `trailers()` if the response doesn't have a body. We broke [Retrofit] users
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jul 07 19:32:33 UTC 2025 - 31.6K bytes - Viewed (1) -
src/test/java/org/codelibs/fess/helper/VirtualHostHelperTest.java
// No matching host header String key = virtualHostHelper.getVirtualHostKey(); assertEquals("", key); // Matching host header request.addHeader("Host", "example.com"); key = virtualHostHelper.getVirtualHostKey(); assertEquals("", key); // Still empty due to caching // Test caching by calling again - should return cached value
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 19 23:49:30 UTC 2025 - 11.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/CrawlingConfigHelper.java
* @param available whether to filter only available configurations * @param idList the list of configuration IDs to retrieve, or null for no ID filtering * @return a list of WebConfig objects matching the criteria */ public List<WebConfig> getAllWebConfigList(final boolean withLabelType, final boolean withRoleType, final boolean available, final List<String> idList) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 19.5K bytes - Viewed (0) -
README.md
- **Exception Handling** (`org.codelibs.core.exception`) - Runtime exception wrappers for common checked exceptions with consistent error handling ### Modern Java 21 Support - **Pattern Matching** - Leverages modern Java pattern matching for efficient type checking and conversion - **Switch Expressions** - Optimized implementations using switch expressions for better performance
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sun Aug 31 02:56:02 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/action/FessUserBeanTest.java
testUser.setRoleNames(new String[] {}); assertFalse(fessUserBean.hasRole("admin")); // Test with single role - matching testUser.setRoleNames(new String[] { "admin" }); assertTrue(fessUserBean.hasRole("admin")); // Test with single role - not matching assertFalse(fessUserBean.hasRole("user")); // Test with multiple roles
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 11.6K bytes - Viewed (0)