Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for WriteOnlyModelViewException (0.21 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/model/WriteOnlyModelViewException.java

    /**
     * Thrown when an attempt is made to read the value of a model element that is not readable at the time.
     */
    @Incubating
    public class WriteOnlyModelViewException extends GradleException {
    
        public WriteOnlyModelViewException(String property, ModelPath path, ModelType<?> type, ModelRuleDescriptor ruleDescriptor) {
            super(createMessage(property, path, type, ruleDescriptor));
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/DefaultModelViewState.java

        @Override
        public void assertCanReadChildren() {
            if (!canReadChildren) {
                throw new WriteOnlyModelViewException(null, path, type, ruleDescriptor);
            }
        }
    
        @Override
        public void assertCanReadChild(String name) {
            if (!canReadChildren) {
                throw new WriteOnlyModelViewException(name, path, type, ruleDescriptor);
            }
        }
    
        @Override
        public boolean isCanMutate() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/ManagedNodeBackedModelMapTest.groovy

            e.cause instanceof WriteOnlyModelViewException
        }
    
        def "cannot read size in mutative method"() {
            when:
            mutate {
                size()
            }
            realizeAsModelMap()
    
            then:
            def e = thrown ModelRuleExecutionException
            e.cause instanceof WriteOnlyModelViewException
        }
    
        def "can put existing unmanaged instance"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.7K bytes
    - Viewed (0)
Back to top