Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 258 for throws (0.18 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/AbstractIntegrationSpec.groovy

        /**
         * Gets all problems collected by the Problems API.
         *
         * @return The list of collected problems
         * @throws IllegalStateException if the Problems API check is not enabled
         */
        List<ReceivedProblem> getCollectedProblems() {
            if (!enableProblemsApiCheck) {
                throw new IllegalStateException('Problems API check is not enabled')
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:07:53 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  2. cluster/gce/gci/configure-helper.sh

    function update-node-journal {
      local -r configmap_yaml="$1"
      if [[ "${ENABLE_NODE_JOURNAL:-}" != "true" ]]; then
        # Removes all lines between two patterns (throws away node-journal)
        sed -i -e "/# BEGIN_NODE_JOURNAL/,/# END_NODE_JOURNAL/d" "${configmap_yaml}"
      fi
    }
    
    # Updates parameters in yaml file for prometheus-to-sd configuration, or
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 22:07:47 UTC 2024
    - 141.1K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/fixture/CrossVersionToolingApiSpecificationRetryTest.groovy

        }
    
        def iteration = 0
    
        def "does not retry if NPE is thrown in daemon registry in >=1.8"() {
            given:
            iteration++
    
            when:
            throwWhen(new GradleConnectionException("Test Exception", new NullPointerException()), iteration == 1)
    
            then:
            GradleConnectionException gce = thrown()
            gce.cause instanceof NullPointerException
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 06:17:20 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheValueSourceIntegrationTest.groovy

        }
    
        def "exception thrown from ValueSource becomes problem if the exception is #exceptionHandlerDescritpion"() {
            given:
            buildFile("""
                import org.gradle.api.provider.*
    
                abstract class BrokenValueSource implements ValueSource<String, ValueSourceParameters.None>, Describable {
                    @Override String obtain() { throw new RuntimeException("Broken!") }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/EncryptionService.kt

                    }
                } catch (e: EncryptionException) {
                    if (e.message != null) {
                        throw e
                    }
                    throw EncryptionException("Error loading encryption key from ${keySource.sourceDescription}", e.cause)
                } catch (e: Exception) {
                    throw EncryptionException("Error loading encryption key from ${keySource.sourceDescription}", e)
                }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  6. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/SystemClassLoaderTest.groovy

                        try {
                            def clazz = systemLoader.loadClass(nonLauncherOrCoreClass)
                            assert clazz == null : "ClassNotFoundException should have been thrown trying to load a “\${nonLauncherOrCoreClass}” class from the system classloader as its not a launcher or core class (loaded class: \$clazz)"
                        } catch (ClassNotFoundException e) {
                            // expected
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/NullPointerTester.java

          Throwable cause = e.getCause();
          if (policy.isExpectedType(cause)) {
            return;
          }
          throw new AssertionError(
              String.format(
                  "wrong exception thrown from %s when passing null to %s parameter at index %s.%n"
                      + "Full parameters: %s%n"
                      + "Actual exception message: %s",
                  invokable,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

          Throwable cause = e.getCause();
          if (policy.isExpectedType(cause)) {
            return;
          }
          throw new AssertionError(
              String.format(
                  "wrong exception thrown from %s when passing null to %s parameter at index %s.%n"
                      + "Full parameters: %s%n"
                      + "Actual exception message: %s",
                  invokable,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  9. RELEASE.md

            *   (since v2.7) `tf.timestamp`. Throws `FailedPrecondition`
            *   (since v2.7) `tf.Variable.scatter_add` (and other scatter methods,
                both on ref and resource variables)
            *   (since v2.7) The random-number-generating ops in the `tf.random`
                module when the global random seed has not yet been set (via
                `tf.random.set_seed`). Throws `RuntimeError` from Python or
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 730.3K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/oldresult/TransientConfigurationResultsBuilder.java

                            if (parent == null) {
                                throw new IllegalStateException(String.format("Unexpected parent dependency id %s. Seen ids: %s", parentId, allDependencies.keySet()));
                            }
                            if (child == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 14:19:34 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top