Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 33 for caught (0.09 seconds)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/test/java/org/codelibs/fess/exception/LdapConfigurationExceptionTest.java

            } catch (LdapConfigurationException e) {
                assertEquals(errorMessage, e.getMessage());
                assertNull(e.getCause());
            } catch (Exception e) {
                fail("Should have caught LdapConfigurationException");
            }
        }
    
        @Test
        public void test_throwAndCatchAsFessSystemException() {
            // Test catching as parent exception type
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/exception/SearchQueryExceptionTest.java

            } catch (SearchQueryException e) {
                assertEquals(expectedMessage, e.getMessage());
                assertNull(e.getCause());
            } catch (Exception e) {
                fail("Should have caught SearchQueryException");
            }
        }
    
        @Test
        public void test_throwWithCauseAndCatch() {
            // Test throwing with cause and catching
            String expectedMessage = "Test with cause";
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 10K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/exception/FessUserNotFoundExceptionTest.java

                assertEquals("User is not found: nonexistentuser", e.getMessage());
                assertNull(e.getCause());
            } catch (Exception e) {
                fail("Should have caught FessUserNotFoundException");
            }
        }
    
        @Test
        public void test_throwAndCatchAsFessSystemException() {
            // Test catching as parent exception type
            String username = "testuser";
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 6.8K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainFinallyHookTest.java

                        Method method = clazz.getMethod("shutdownAll", (Class<?>[]) null);
                        method.invoke(null, (Object[]) null);
                    } catch (Exception e) {
                        // Exception should be caught and logged
                        exceptionHandled.set(true);
                    }
                }
            };
    
            FwAssistantDirector assistantDirector = createMockAssistantDirector();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 8.7K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

           * value is set in addition to the call we'll make after then.
           */
          allowGetToComplete.await(1, SECONDS);
          throw new RuntimeException("expected, should be caught");
        }
    
        @Override
        public V get(long timeout, TimeUnit unit) {
          throw new AssertionFailedError();
        }
    
        @Override
        public boolean isCancelled() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 10K bytes
    - Click Count (0)
Back to Top