Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 132 for getCauses (0.1 sec)

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

        WrapperException(Throwable t) {
          super(t);
        }
      }
    
      private static void rethrow(ExecutionException e) throws ExecutionException {
        Throwable wrapper = e.getCause();
        if (wrapper instanceof WrapperException) {
          Throwable cause = wrapper.getCause();
          if (cause instanceof RuntimeException) {
            throw (RuntimeException) cause;
          } else if (cause instanceof Error) {
            throw (Error) cause;
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 12 20:02:10 UTC 2018
    - 3.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/eventbus/SubscriberRegistry.java

             * simply rethrow an exception (e.getCause()) that may in rare cases have come from another
             * thread. To accomplish both goals, we wrap that IllegalArgumentException in a new
             * instance.
             */
            throw new IllegalArgumentException(e.getCause().getMessage(), e.getCause());
          }
          /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:16:45 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/http/HcHttpClientTest.java

            };
            client.setAccessTimeout(1);
            try {
                client.doGet("http://localhost/");
                fail();
            } catch (CrawlingAccessException e) {
                assertTrue(e.getCause() instanceof InterruptedException);
            }
        }
    
        public void test_doHead_accessTimeoutTarget() {
            HcHttpClient client = new HcHttpClient() {
                @Override
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu May 09 09:28:25 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/ExecutionError.java

    import javax.annotation.CheckForNull;
    
    /**
     * {@link Error} variant of {@link java.util.concurrent.ExecutionException}. As with {@code
     * ExecutionException}, the error's {@linkplain #getCause() cause} comes from a failed task,
     * possibly run in another thread. That cause should itself be an {@code Error}; if not, use {@code
     * ExecutionException} or {@link UncheckedExecutionException}. This allows the client code to
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Mar 07 17:52:19 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

        assertTrue(future.isDone());
        assertNull(tryInternalFastPathGetFailure(future));
        CancellationException e = assertThrows(CancellationException.class, () -> future.get());
        assertNotNull(e.getCause());
      }
    
      public void testCancel_notDoneInterrupt() throws Exception {
        Future<?> future = newFutureInstance();
        assertTrue(future.cancel(true));
        assertTrue(future.isCancelled());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

        assertTrue(future.isDone());
        assertNull(tryInternalFastPathGetFailure(future));
        CancellationException e = assertThrows(CancellationException.class, () -> future.get());
        assertNotNull(e.getCause());
      }
    
      public void testCancel_notDoneInterrupt() throws Exception {
        Future<?> future = newFutureInstance();
        assertTrue(future.cancel(true));
        assertTrue(future.isCancelled());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

          return future.get();
        } catch (InterruptedException e) {
          currentThread().interrupt();
          throw newWithCause(exceptionClass, e);
        } catch (ExecutionException e) {
          wrapAndThrowExceptionOrError(e.getCause(), exceptionClass);
          throw new AssertionError();
        }
      }
    
      /** Implementation of {@link Futures#getChecked(Future, Class, long, TimeUnit)}. */
      @CanIgnoreReturnValue
      @ParametricNullness
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:40:56 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/cache/RemovalNotification.java

        super(key, value);
        this.cause = checkNotNull(cause);
      }
    
      /** Returns the cause for which the entry was removed. */
      public RemovalCause getCause() {
        return cause;
      }
    
      /**
       * Returns {@code true} if there was an automatic removal due to eviction (the cause is neither
       * {@link RemovalCause#EXPLICIT} nor {@link RemovalCause#REPLACED}).
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 01 20:46:24 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

        try {
          method.invoke(wrapper, getParameterValues(method));
          fail(method + " failed to throw exception as is.");
        } catch (InvocationTargetException e) {
          if (exception != e.getCause()) {
            throw new RuntimeException(e);
          }
        } catch (IllegalAccessException e) {
          throw new AssertionError(e);
        }
      }
    
      private static <T> void testEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/MojoFailureException.java

        }
    
        /**
         * Constructs a new {@code MojoFailureException} exception wrapping an underlying {@code Throwable}.
         *
         * @param cause the cause which is saved for later retrieval by the {@link #getCause()} method.
         *              A {@code null} value is permitted, and indicates that the cause is nonexistent or unknown.
         * @since 3.8.3
         */
        public MojoFailureException(Throwable cause) {
            super(cause);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top