Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for AttributeMatchException (0.37 sec)

  1. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/attributes/AttributeMatchException.java

     * limitations under the License.
     */
    
    package org.gradle.api.internal.attributes;
    
    import org.gradle.internal.exceptions.Contextual;
    
    @Contextual
    public class AttributeMatchException extends RuntimeException {
        public AttributeMatchException(String message, Throwable cause) {
            super(message, cause);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 898 bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/attributes/DefaultCompatibilityRuleChainTest.groovy

            details.producerValue >> "value2"
            ruleChain.add(BrokenRule)
    
            when:
            ruleChain.execute(details)
    
            then:
            def e = thrown(AttributeMatchException)
            e.message == 'Could not determine whether value value2 is compatible with value value1 using DefaultCompatibilityRuleChainTest.BrokenRule.'
            e.cause == BrokenRule.failure
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/attributes/DefaultDisambiguationRuleChainTest.groovy

            given:
            details.candidateValues >> (["value1", "value2"] as Set)
            ruleChain.add(BrokenRule)
    
            when:
            ruleChain.execute(details)
    
            then:
            def e = thrown(AttributeMatchException)
            e.message == 'Could not select value from candidates [value1, value2] using DefaultDisambiguationRuleChainTest.BrokenRule.'
            e.cause == BrokenRule.failure
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/attributes/DefaultDisambiguationRuleChain.java

                Set<T> orderedValues = Sets.newTreeSet(Ordering.usingToString());
                orderedValues.addAll(details.getCandidateValues());
                throw new AttributeMatchException(String.format("Could not select value from candidates %s using %s.", orderedValues, ModelType.of(rule).getDisplayName()), throwable);
            }
    
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/attributes/DefaultCompatibilityRuleChain.java

                this.rule = rule;
            }
    
            @Override
            public void handleException(CompatibilityCheckDetails<T> details, Throwable throwable) {
                throw new AttributeMatchException(String.format("Could not determine whether value %s is compatible with value %s using %s.", details.getProducerValue(), details.getConsumerValue(), ModelType.of(rule).getDisplayName()), throwable);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 3.9K bytes
    - Viewed (0)
Back to top