- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 130 for getCause (0.13 sec)
-
guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/AbstractFuture.java
try { V value = getDone(this); builder.append("SUCCESS, result=[").append(value).append("]"); } catch (ExecutionException e) { builder.append("FAILURE, cause=[").append(e.getCause()).append("]"); } catch (CancellationException e) { builder.append("CANCELLED"); } catch (RuntimeException e) { builder.append("UNKNOWN, cause=[").append(e.getClass()).append(" thrown from get()]");
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jan 22 19:37:41 UTC 2024 - 12.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java
ListenableFuture<String> chain = buildChainingFuture(badInput); ExecutionException e = assertThrows(ExecutionException.class, () -> chain.get()); assertSame(RuntimeException.class, e.getCause().getClass()); } /** Proxy to throw a {@link RuntimeException} out of the {@link #get()} method. */ public static class BadFuture extends SimpleForwardingListenableFuture<Integer> {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 6.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java
ListenableFuture<String> chain = buildChainingFuture(badInput); ExecutionException e = assertThrows(ExecutionException.class, () -> chain.get()); assertSame(RuntimeException.class, e.getCause().getClass()); } /** Proxy to throw a {@link RuntimeException} out of the {@link #get()} method. */ public static class BadFuture extends SimpleForwardingListenableFuture<Integer> {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 6.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java
expected = assertThrows(PotentialDeadlockException.class, () -> lockA.lock()); checkMessage(expected, "LockB -> LockA", "LockA -> LockB"); // The causal chain should be cached. assertSame(firstException.getCause(), expected.getCause()); // lockA should work after lockB is released. lockB.unlock(); lockA.lock(); } // Tests transitive deadlock detection. public void testDeadlock_threeLocks() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 16.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java
expected = assertThrows(PotentialDeadlockException.class, () -> lockA.lock()); checkMessage(expected, "LockB -> LockA", "LockA -> LockB"); // The causal chain should be cached. assertSame(firstException.getCause(), expected.getCause()); // lockA should work after lockB is released. lockB.unlock(); lockA.lock(); } // Tests transitive deadlock detection. public void testDeadlock_threeLocks() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 16.1K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/UncheckedExecutionException.java
import javax.annotation.CheckForNull; /** * 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 Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Mar 07 17:52:19 UTC 2024 - 4.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeConnection.java
// retrying make no sense, as it will never become available again. if ( params.contains(RequestParam.NO_RETRY) || ( ! ( smbe.getCause() instanceof TransportException ) ) && smbe.getNtStatus() != NtStatus.NT_STATUS_INVALID_PARAMETER ) { log.debug("Not retrying", smbe); throw smbe; }
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Tue Jul 07 10:50:16 UTC 2020 - 31K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/ftp/FtpClientTest.java
}; client.setAccessTimeout(1); try { client.doGet("ftp://localhost/test.txt"); fail(); } catch (CrawlingAccessException e) { assertTrue(e.getCause() instanceof InterruptedException); } } public void test_doHead_accessTimeoutTarget() { FtpClient client = new FtpClient() { @Override
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 16.3K bytes - Viewed (0) -
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) { String message = "In: " + pom + "\n\n"; for (ModelProblem problem : ((ModelBuildingException) cause).getProblems()) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 6.9K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/CrawlerLogHelper.java
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:11:58 UTC 2024 - 7.3K bytes - Viewed (0)