Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 75 for error (0.15 sec)

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

          fail();
        } catch (RuntimeException expected) {
          assertEquals(RUNTIME_EXCEPTION, expected);
        }
      }
    
      public void testGetUnchecked_Error() {
        try {
          getUnchecked(ERROR_FUTURE);
        } catch (Error expected) {
          assertEquals(ERROR, expected);
          return;
        }
        fail();
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CloserTest.java

            new Suppression(c1, tryException, c1Exception));
      }
    
      public void testErrors() throws IOException {
        Closer closer = new Closer(suppressor);
    
        Error c1Exception = new Error();
        Error c2Exception = new Error();
        Error c3Exception = new Error();
    
        TestCloseable c1 = closer.register(TestCloseable.throwsOnClose(c1Exception));
        TestCloseable c2 = closer.register(TestCloseable.throwsOnClose(c2Exception));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 06 15:15:46 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

              } catch (Exception e) { // sneaky checked exception
                AssertionError error =
                    new AssertionFailedError("Serialization failed on return value of " + factory);
                error.initCause(e.getCause());
                throw error;
              } catch (AssertionFailedError e) {
                AssertionError error =
                    new AssertionFailedError(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/UncheckedExecutionException.java

     * ExecutionException} when the exception thrown by a task is an unchecked exception. However, it
     * may also wrap a checked exception in some cases.
     *
     * <p>When wrapping an {@code Error} from another thread, prefer {@link ExecutionError}. When
     * wrapping a checked exception, prefer {@code ExecutionException}.
     *
     * @author Charles Fry
     * @since 10.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 17:52:19 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  5. 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)
  6. guava/src/com/google/common/base/Throwables.java

          throw (RuntimeException) throwable;
        }
        if (throwable instanceof Error) {
          throw (Error) throwable;
        }
      }
    
      /**
       * Propagates {@code throwable} exactly as-is, if and only if it is an instance of {@link
       * RuntimeException} or {@link Error}.
       *
       * @deprecated Use {@link #throwIfUnchecked}, which has the same behavior but rejects {@code
       *     null}.
    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)
  7. android/guava/src/com/google/common/base/Throwables.java

          throw (RuntimeException) throwable;
        }
        if (throwable instanceof Error) {
          throw (Error) throwable;
        }
      }
    
      /**
       * Propagates {@code throwable} exactly as-is, if and only if it is an instance of {@link
       * RuntimeException} or {@link Error}.
       *
       * @deprecated Use {@link #throwIfUnchecked}, which has the same behavior but rejects {@code
       *     null}.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  8. guava-gwt/pom.xml

                the module description of only the prod module. And the prod module doesn't inherit all
                the modules that the test module classes use, so we get errors.
    
                The good news is that, despite ignoring errors here, GWT does fail if any errors affect
                classes that are actually used in the module under test.
    
                One way to eliminate the warnings is to make base.testModule include the not really
    XML
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 11 15:00:55 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/UnsignedLongs.java

        try {
          return parseUnsignedLong(request.rawValue, request.radix);
        } catch (NumberFormatException e) {
          NumberFormatException decodeException =
              new NumberFormatException("Error parsing value: " + stringValue);
          decodeException.initCause(e);
          throw decodeException;
        }
      }
    
      /*
       * We move the static constants into this class so ProGuard can inline UnsignedLongs entirely
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/Files.java

       * @param to the output stream
       * @throws IOException if an I/O error occurs
       */
      public static void copy(File from, OutputStream to) throws IOException {
        asByteSource(from).copyTo(to);
      }
    
      /**
       * Copies all the bytes from one file to another.
       *
       * <p>Copying is not an atomic operation - in the case of an I/O error, power loss, process
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 33.1K bytes
    - Viewed (0)
Back to top