Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 162 for getCauses (0.06 sec)

  1. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

                try {
                  String result = Uninterruptibles.getUninterruptibly(currentFuture.get());
                  finalResults.add(result);
                } catch (ExecutionException e) {
                  finalResults.add(e.getCause());
                } catch (CancellationException e) {
                  finalResults.add(CancellationException.class);
                } finally {
                  awaitUnchecked(barrier);
                }
              }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

        exec.execute(task);
        runLatch.await();
        taskLatch.countDown();
    
        ExecutionException e = assertThrows(ExecutionException.class, () -> task.get(5, SECONDS));
        assertEquals(IllegalStateException.class, e.getCause().getClass());
    
        assertTrue(listenerLatch.await(5, SECONDS));
        assertTrue(task.isDone());
        assertFalse(task.isCancelled());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/UncheckedExecutionException.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * Unchecked variant of {@link java.util.concurrent.ExecutionException}. As with {@code
     * ExecutionException}, the exception's {@linkplain #getCause() cause} comes from a failed task,
     * possibly run in another thread.
     *
     * <p>{@code UncheckedExecutionException} is intended as an alternative to {@code
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/DcerpcErrorTest.java

            // Test with root cause
            Exception rootCause = new Exception("Root cause");
            DcerpcException ex3 = new DcerpcException("Error with cause", rootCause);
            assertEquals(rootCause, ex3.getCause());
        }
    
        @Test
        @DisplayName("Should verify error message lookup for known fault codes")
        void testErrorMessageLookup() {
            // Test message lookup using DcerpcException's static method
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableListCopyOfConcurrentlyModifiedInputTest.java

                  Object returnValue = method.invoke(delegate, args);
                  mutateDelegate();
                  return returnValue;
                } catch (InvocationTargetException e) {
                  throw e.getCause();
                } catch (IllegalAccessException e) {
                  throw new AssertionError(e);
                }
              }
    
              private void mutateDelegate() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  6. compat/maven-compat/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java

            initRepoSession(configuration);
    
            try {
                return projectBuilder.build(pom, configuration).getProject();
            } catch (Exception e) {
                Throwable cause = e.getCause();
                if (cause instanceof ModelBuildingException modelBuildingException) {
                    StringBuilder message = new StringBuilder("In: " + pom + "\n\n");
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 20:01:00 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/job/CrawlJobTest.java

            } catch (JobProcessingException e) {
                assertTrue(e.getMessage().contains("Failed to execute a crawl job"));
                assertNotNull(e.getCause());
                assertEquals("Test exception", e.getCause().getMessage());
            }
        }
    
        // Test execute with JobProcessingException in executeCrawler
        public void test_execute_executeCrawlerThrowsJobProcessingException() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 25K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

          // We use getUninterruptibly over getDone as a micro-optimization, we know the future is done.
          collectOneValue(index, getUninterruptibly(future));
        } catch (ExecutionException e) {
          handleException(e.getCause());
        } catch (Throwable t) { // sneaky checked exception
          handleException(t);
        }
      }
    
      private void decrementCountAndMaybeComplete(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 16K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbFileInputStream.java

         */
        protected static IOException seToIoe(final SmbException se) {
            IOException ioe = se;
            Throwable root = se.getCause();
            if (root instanceof TransportException) {
                ioe = (TransportException) root;
                root = ioe.getCause();
            }
            if (root instanceof InterruptedException) {
                ioe = new InterruptedIOException(root.getMessage());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/util/StringsTest.java

                });
    
                assertTrue(exception.getMessage().contains("Unsupported OEM encoding"), "Exception should mention unsupported encoding");
                assertTrue(exception.getCause() instanceof UnsupportedEncodingException, "Cause should be UnsupportedEncodingException");
            }
        }
    
        @Nested
        @DisplayName("Unicode Decoding Tests")
        class UnicodeDecodingTests {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
Back to top