Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 170 for Krause (0.27 sec)

  1. android/guava/src/com/google/common/util/concurrent/SimpleTimeLimiter.java

        Throwable cause = e.getCause();
        if (cause == null) {
          throw e;
        }
        if (combineStackTraces) {
          StackTraceElement[] combined =
              ObjectArrays.concat(cause.getStackTrace(), e.getStackTrace(), StackTraceElement.class);
          cause.setStackTrace(combined);
        }
        if (cause instanceof Exception) {
          throw (Exception) cause;
        }
        if (cause instanceof Error) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jun 27 14:21:11 GMT 2023
    - 9.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedInputs.java

        public TwoArgConstructorException(String message, Throwable cause) {
          super(message, cause);
        }
      }
    
      public static final class TwoArgConstructorRuntimeException extends RuntimeException {
        public TwoArgConstructorRuntimeException(String message, Throwable cause) {
          super(message, cause);
        }
      }
    
      public static final class ExceptionWithPrivateConstructor extends Exception {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 13:46:56 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Throwables.java

      }
    
      /**
       * Gets a {@code Throwable} cause chain as a list. The first entry in the list will be {@code
       * throwable} followed by its cause hierarchy. Note that this is a snapshot of the cause chain and
       * will not reflect any subsequent changes to the cause chain.
       *
       * <p>Here's an example of how it can be used to find specific types of exceptions in the cause
       * chain:
       *
       * <pre>
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Throwables.java

      }
    
      /**
       * Gets a {@code Throwable} cause chain as a list. The first entry in the list will be {@code
       * throwable} followed by its cause hierarchy. Note that this is a snapshot of the cause chain and
       * will not reflect any subsequent changes to the cause chain.
       *
       * <p>Here's an example of how it can be used to find specific types of exceptions in the cause
       * chain:
       *
       * <pre>
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

        // Hack to load AbstractFuture et. al. in a new classloader so that it re-reads the cancellation
        // cause system property.  This allows us to run with both settings of the property in one jvm
        // without resorting to even crazier hacks to reset static final boolean fields.
        System.setProperty("guava.concurrent.generate_cancellation_cause", "true");
        final String concurrentPackage = SettableFuture.class.getPackage().getName();
        classReloader =
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

        for (int i = 0; i < stimuli.length; i++) {
          try {
            stimuli[i].executeAndCompare(reference, target);
            verify(reference.getElements());
          } catch (AssertionFailedError cause) {
            Helpers.fail(cause, "failed with stimuli " + subListCopy(stimuli, i + 1));
          }
        }
      }
    
      private static List<Object> subListCopy(Object[] source, int size) {
        final Object[] copy = new Object[size];
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  7. futures/failureaccess/src/com/google/common/util/concurrent/internal/InternalFutures.java

     *     Guava 27.0
     */
    public final class InternalFutures {
      /**
       * Usually returns {@code null} but, if the given {@code Future} has failed, may <i>optionally</i>
       * return the cause of the failure. "Failure" means specifically "completed with an exception"; it
       * does not include "was cancelled." To be explicit: If this method returns a non-null value,
       * then:
       *
       * <ul>
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  8. android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

            .withSetUp(setUp)
            .withTearDown(tearDown)
            .createTestSuite();
      }
    
      private static LinkageError newLinkageError(Throwable cause) {
        LinkageError error = new LinkageError(cause.toString());
        error.initCause(cause);
        return error;
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  9. guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

            .withSetUp(setUp)
            .withTearDown(tearDown)
            .createTestSuite();
      }
    
      private static LinkageError newLinkageError(Throwable cause) {
        LinkageError error = new LinkageError(cause.toString());
        error.initCause(cause);
        return error;
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 11.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

        assertThat(future.set(1)).isTrue();
        assertSuccessful(future, 1);
      }
    
      public void testFailed() throws Exception {
        Exception cause = new Exception();
        assertThat(future.setException(cause)).isTrue();
        assertFailed(future, cause);
      }
    
      public void testCanceled() throws Exception {
        assertThat(future.cancel(false /* mayInterruptIfRunning */)).isTrue();
        assertCancelled(future, false);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 15.5K bytes
    - Viewed (0)
Back to top