- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 145 for caught (0.05 seconds)
-
guava-tests/test/com/google/common/cache/ReflectionFreeAssertThrows.java
} catch (Throwable t) { if (predicate.apply(t)) { // We are careful to set up INSTANCE_OF to match each Predicate to its target Class. @SuppressWarnings("unchecked") T caught = (T) t; return caught; } throw new AssertionError( "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t); } if (userPassedSupplier) { throw new AssertionError(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 6.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/ReflectionFreeAssertThrows.java
} catch (Throwable t) { if (predicate.apply(t)) { // We are careful to set up INSTANCE_OF to match each Predicate to its target Class. @SuppressWarnings("unchecked") T caught = (T) t; return caught; } throw new AssertionError( "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t); } if (userPassedSupplier) { throw new AssertionError(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/LdapOperationExceptionTest.java
} catch (LdapOperationException e) { assertEquals(expectedMessage, e.getMessage()); assertNull(e.getCause()); } catch (Exception e) { fail("Should have caught LdapOperationException"); } } @Test public void test_throwAndCatchWithCause() { // Test throwing and catching the exception with cause
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 8.3K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ForwardingSortedSet.java
* * @since 7.0 */ @Override protected boolean standardContains(@Nullable Object object) { try { // any ClassCastExceptions and NullPointerExceptions are caught @SuppressWarnings({"unchecked", "nullness"}) SortedSet<@Nullable Object> self = (SortedSet<@Nullable Object>) this; Object ceiling = self.tailSet(object).first();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Feb 12 16:28:01 GMT 2025 - 5.7K bytes - Click Count (0) -
guava/src/com/google/common/collect/ForwardingSortedSet.java
* * @since 7.0 */ @Override protected boolean standardContains(@Nullable Object object) { try { // any ClassCastExceptions and NullPointerExceptions are caught @SuppressWarnings({"unchecked", "nullness"}) SortedSet<@Nullable Object> self = (SortedSet<@Nullable Object>) this; Object ceiling = self.tailSet(object).first();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Feb 12 16:28:01 GMT 2025 - 5.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/ContentNotFoundExceptionTest.java
assertEquals("Not Found: http://example.com/child Parent: http://example.com/parent", e.getMessage()); assertNull(e.getCause()); } catch (Exception e) { fail("Should have caught ContentNotFoundException"); } } @Test public void test_catchAsFessSystemException() { // Test catching as parent exception type
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 7.9K bytes - Click Count (0) -
src/test/java/jcifs/RuntimeCIFSExceptionTest.java
void testCatchBlockBehavior() { // Test that RuntimeCIFSException can be caught as RuntimeException assertThrows(RuntimeException.class, () -> { throw new RuntimeCIFSException("Test exception"); }); // Test that it can be caught specifically assertThrows(RuntimeCIFSException.class, () -> {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.2K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/ExecutionList.java
* thrown by {@linkplain MoreExecutors#directExecutor direct execution}) will be caught and logged. * * @author Nishant Thakkar * @author Sven Mawson * @since 1.0 */ @GwtIncompatible public final class ExecutionList { /** Logger to log exceptions caught when running runnables. */ private static final LazyLogger log = new LazyLogger(ExecutionList.class);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Feb 10 11:51:21 GMT 2026 - 6.9K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/Service.java
* they were registered. * * <p>RuntimeExceptions thrown by a listener will be caught and logged. Any exception thrown * during {@code Executor.execute} (e.g., a {@code RejectedExecutionException}) will be caught and * logged. * * @param listener the listener to run when the service changes state is completeCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 10.8K bytes - Click Count (0) -
src/main/java/org/codelibs/core/lang/ThreadUtil.java
} } /** * Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds. * Any {@link InterruptedException} is caught and logged at debug level. * * @param millis * the length of time to sleep in milliseconds */ public static void sleepQuietly(final long millis) { if (millis < 1L) {Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 2.3K bytes - Click Count (0)