Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 111 for error (0.17 sec)

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

    import com.google.common.annotations.GwtCompatible;
    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
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 17:52:19 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractChainedListenableFutureTest.java

        listener.assertException(EXCEPTION);
      }
    
      public void testFutureGetThrowsWrappedError() throws Exception {
        Error error = new Error();
        inputFuture.setException(error);
        // Verify that get throws an ExecutionException, caused by an Error, when
        // the callback is called.
        listener.assertException(error);
      }
    
      public void testAddListenerAfterCallback() throws Throwable {
        inputFuture.set(VALID_INPUT_DATA);
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  3. guava-testlib/test/com/google/common/testing/SerializableTesterTest.java

        boolean errorNotThrown = false;
        try {
          SerializableTester.reserializeAndAssert(orig);
          errorNotThrown = true;
        } catch (AssertionFailedError error) {
          // expected
          assertContains("must be Object#equals to", error.getMessage());
        }
        assertFalse(errorNotThrown);
      }
    
      public void testClassWhichIsAlwaysEqualButHasDifferentHashcodes() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/QuantilesAlgorithmTest.java

     */
    public class QuantilesAlgorithmTest extends TestCase {
    
      private static final Random RNG = new Random(82674067L);
      private static final int DATASET_SIZE = 1000;
      private static final double ALLOWED_ERROR = 1.0e-10;
      private static final QuantilesAlgorithm REFERENCE_ALGORITHM = QuantilesAlgorithm.SORTING;
      private static final Set<QuantilesAlgorithm> NON_REFERENCE_ALGORITHMS =
          Sets.difference(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/TrustedListenableFutureTask.java

        void afterRanInterruptiblySuccess(@ParametricNullness V result) {
          TrustedListenableFutureTask.this.set(result);
        }
    
        @Override
        void afterRanInterruptiblyFailure(Throwable error) {
          setException(error);
        }
    
        @Override
        String toPendingString() {
          return callable.toString();
        }
      }
    
      @WeakOuter
      private final class TrustedFutureInterruptibleAsyncTask
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 01 17:18:04 GMT 2021
    - 5.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/eventbus/SubscriberExceptionContext.java

      private final Object subscriber;
      private final Method subscriberMethod;
    
      /**
       * @param eventBus The {@link EventBus} that handled the event and the subscriber. Useful for
       *     broadcasting a new event based on the error.
       * @param event The event object that caused the subscriber to throw.
       * @param subscriber The source subscriber context.
       * @param subscriberMethod the subscribed method.
       */
      SubscriberExceptionContext(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 22 13:05:46 GMT 2021
    - 2.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/graph/PackageSanityTests.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.graph;
    
    import static com.google.common.graph.TestUtil.ERROR_ELEMENT_NOT_IN_GRAPH;
    import static com.google.common.truth.Truth.assertWithMessage;
    
    import com.google.common.testing.AbstractPackageSanityTests;
    import junit.framework.AssertionFailedError;
    
    /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Nov 09 19:24:25 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/graph/TestUtil.java

    /** Utility methods used in various common.graph tests. */
    final class TestUtil {
      static final String ERROR_ELEMENT_NOT_IN_GRAPH = "not an element of this graph";
      static final String ERROR_NODE_NOT_IN_GRAPH =
          "Should not be allowed to pass a node that is not an element of the graph.";
      static final String ERROR_ELEMENT_REMOVED = "used to generate this set";
      private static final String NODE_STRING = "Node";
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/TestUtil.java

    /** Utility methods used in various common.graph tests. */
    final class TestUtil {
      static final String ERROR_ELEMENT_NOT_IN_GRAPH = "not an element of this graph";
      static final String ERROR_NODE_NOT_IN_GRAPH =
          "Should not be allowed to pass a node that is not an element of the graph.";
      static final String ERROR_ELEMENT_REMOVED = "used to generate this set";
      private static final String NODE_STRING = "Node";
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedInputs.java

          immediateFailedFuture(OTHER_THROWABLE);
      static final Error ERROR = new Error("mymessage");
      static final Future<String> FAILED_FUTURE_ERROR = immediateFailedFuture(ERROR);
      static final Future<String> RUNTIME_EXCEPTION_FUTURE =
          UncheckedThrowingFuture.throwingRuntimeException(RUNTIME_EXCEPTION);
      static final Future<String> ERROR_FUTURE = UncheckedThrowingFuture.throwingError(ERROR);
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 13:46:56 GMT 2023
    - 6.2K bytes
    - Viewed (0)
Back to top