- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 64 for caught (0.08 seconds)
-
guava-tests/test/com/google/common/io/CloserTest.java
try { try { throw exception; } catch (Throwable e) { throw closer.rethrow(e); } finally { closer.close(); } } catch (Throwable caught) { assertThat(caught).isEqualTo(exception); } assertTrue(c1.isClosed()); assertTrue(c2.isClosed()); assertTrue(suppressor.suppressions.isEmpty()); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 11.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/CloserTest.java
try { try { throw exception; } catch (Throwable e) { throw closer.rethrow(e); } finally { closer.close(); } } catch (Throwable caught) { assertThat(caught).isEqualTo(exception); } assertTrue(c1.isClosed()); assertTrue(c2.isClosed()); assertTrue(suppressor.suppressions.isEmpty()); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 11.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/llm/LlmExceptionTest.java
boolean caught = false; try { throw new LlmException("Test exception"); } catch (final LlmException e) { caught = true; assertEquals("Test exception", e.getMessage()); } assertTrue(caught); } @Test public void test_catchAsFessSystemException() { boolean caught = false; try {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 05 04:19:06 GMT 2026 - 5.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/ThemeExceptionTest.java
} catch (ThemeException e) { assertEquals(expectedMessage, e.getMessage()); assertNull(e.getCause()); } catch (Exception e) { fail("Should have caught ThemeException, but caught: " + e.getClass()); } } @Test public void test_throwAndCatchWithCause() { // Test throwing and catching exception with cause
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 8.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/ServletRuntimeExceptionTest.java
ServletException originalException = new ServletException("Throw test"); try { throw new ServletRuntimeException(originalException); } catch (ServletRuntimeException caught) { // Verify the caught exception assertNotNull(caught); assertEquals(originalException, caught.getCause());
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 5.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/DictionaryExpiredExceptionTest.java
assertNotNull(e); assertNull(e.getMessage()); } catch (Exception e) { fail("Should have caught DictionaryExpiredException"); } } @Test public void test_throwAsRuntimeException() { // Test that it can be caught as RuntimeException try { throw new DictionaryExpiredException(); } catch (RuntimeException e) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 7.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java
// Execute the job - Error should NOT be caught since implementation only catches Exception try { aggregateLogJob.execute(); fail("OutOfMemoryError should not be caught by Exception handler"); } catch (OutOfMemoryError e) { // Expected - OutOfMemoryError is not caught by Exception handler assertEquals("Simulated OOM", e.getMessage());Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 12.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/ResultOffsetExceededExceptionTest.java
assertNull(e.getCause()); } catch (Exception e) { fail("Should have caught ResultOffsetExceededException"); } } @Test public void test_throwAndCatchAsFessSystemException() { // Test catching as parent class FessSystemException String expectedMessage = "Caught as FessSystemException"; try {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 9.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/CommandExecutionExceptionTest.java
assertNull(e.getCause()); } catch (Exception e) { fail("Should have caught CommandExecutionException"); } } @Test public void test_exceptionThrownWithCause() { // Test that the exception with cause can be thrown and caught properly String expectedMessage = "Command failed to execute";
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 9.4K bytes - Click Count (0) -
guava/src/com/google/common/cache/CacheLoader.java
* treated like any other {@code Exception} in all respects except that, when it is caught, * the thread's interrupted status is set * @since 11.0 */ public Map<K, V> loadAll(Iterable<? extends K> keys) throws Exception { // This will be caught by getAll(), causing it to fall back to multiple calls to // LoadingCache.get throw new UnsupportedLoadingOperationException();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jan 28 22:39:02 GMT 2026 - 9.5K bytes - Click Count (0)