Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for MissingValueException (0.51 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractMinimalProvider.java

        protected Value<? extends T> calculateOwnPresentValue() {
            Value<? extends T> value = calculateOwnValue(ValueConsumer.IgnoreUnsafeRead);
            if (value.isMissing()) {
                throw new MissingValueException(cannotQueryValueOf(value));
            }
    
            return value;
        }
    
        @Override
        public boolean isPresent() {
            return calculatePresence(ValueConsumer.IgnoreUnsafeRead);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 17 23:22:41 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/MapPropertySpec.groovy

            expect:
            !entryProvider.present
            entryProvider.getOrNull() == null
    
            when:
            entryProvider.get()
    
            then:
            def e = thrown(MissingValueException)
            e.message == "Cannot query the value of this provider because it has no value available."
        }
    
        def "entry provider has no value when key is not in map"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 58.7K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/CollectionPropertySpec.groovy

            property.getOrNull() == null
            property.getOrElse(toMutable(["other"])) == toMutable(["other"])
    
            when:
            property.get()
    
            then:
            def e = thrown(MissingValueException)
            e.message == "Cannot query the value of ${displayName} because it has no value available."
        }
    
        def "property has no value when set to provider with no value and other values appended"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 49.7K bytes
    - Viewed (0)
Back to top