Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 612 for Catching (0.05 seconds)

  1. src/test/java/org/codelibs/fess/exception/UserRoleLoginExceptionTest.java

            UserRoleLoginException exception = new UserRoleLoginException(RootAction.class);
            assertNull(exception.getCause());
        }
    
        @Test
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            try {
                throw new UserRoleLoginException(RootAction.class);
            } catch (UserRoleLoginException e) {
                assertEquals(RootAction.class, e.getActionClass());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11K bytes
    - Click Count (0)
  2. src/test/java/jcifs/util/transport/TransportExceptionTest.java

        public void testThrowAndCatch() {
            // Test throwing and catching with message
            String expectedMessage = "Transport failed";
            assertThrows(TransportException.class, () -> {
                throw new TransportException(expectedMessage);
            });
    
            // Test throwing and catching with cause
            RuntimeException cause = new RuntimeException("Cause");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.4K bytes
    - Click Count (0)
  3. 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
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 19.8K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/util/concurrent/Partially.java

     * {@code GwtIncompatible}. This is more accurate for {@link Futures#catching}, which is available
     * under GWT but with a slightly different signature.
     *
     * <p>We can't use {@code PartiallyGwtIncompatible} because then the GWT compiler wouldn't recognize
     * it as a {@code GwtIncompatible} annotation. And for {@code Futures.catching}, we need the GWT
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 1.9K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/exception/ThemeExceptionTest.java

            assertNotNull(exception);
            assertEquals(longMessage, exception.getMessage());
        }
    
        @Test
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            String expectedMessage = "Theme loading error";
    
            try {
                throw new ThemeException(expectedMessage);
            } catch (ThemeException e) {
    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)
  6. src/test/java/org/codelibs/fess/exception/ScheduledJobExceptionTest.java

            assertEquals("Root cause", exception.getCause().getCause().getMessage());
        }
    
        @Test
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            String expectedMessage = "Job execution failed";
            boolean exceptionCaught = false;
    
            try {
                throw new ScheduledJobException(expectedMessage);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/exception/StorageExceptionTest.java

            assertEquals("Level 1", level3.getCause().getCause().getMessage());
        }
    
        @Test
        public void test_throwAndCatchException() {
            // Test throwing and catching the exception
            String expectedMessage = "Storage failure";
    
            try {
                throw new StorageException(expectedMessage);
            } catch (StorageException e) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/exception/SearchQueryExceptionTest.java

            assertEquals("Exception 2", exception2.getMessage());
            assertNotNull(exception3.getCause());
        }
    
        @Test
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            String expectedMessage = "Test throw and catch";
    
            try {
                throw new SearchQueryException(expectedMessage);
            } catch (SearchQueryException e) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 10K bytes
    - Click Count (0)
  9. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/SymbolicLinkPreservingTar.java

                        file = details.getFile();
                    } catch (final UnsupportedOperationException e) {
                        // we get invoked with stubbed details, there is no way to introspect this other than catching this exception
                        return false;
                    }
                    for (final File symbolicLink : visitedSymbolicLinks) {
                        if (isChildOf(symbolicLink, file)) return true;
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 8.7K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/exception/ContainerNotAvailableExceptionTest.java

            assertEquals(middleCause, topException.getCause());
            assertEquals(rootCause, topException.getCause().getCause());
        }
    
        @Test
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            String componentName = "cacheManager";
            try {
                throw new ContainerNotAvailableException(componentName);
            } catch (ContainerNotAvailableException e) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 10.1K bytes
    - Click Count (0)
Back to Top