Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for hasCause (0.17 sec)

  1. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/ErrorHandlingModuleComponentRepositoryTest.groovy

                    }
                }
            }
            retries
        }
    
        static boolean hasCause(Throwable actual, Throwable cause) {
            if (actual == cause) {
                return true
            }
            if (actual.cause && actual.cause != actual) {
                return hasCause(actual.cause, cause)
            }
            return false
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 00:21:07 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/result/ComponentSelectionReasons.java

                }
            }
    
            @Override
            public boolean isForced() {
                return hasCause(ComponentSelectionCause.FORCED);
            }
    
            private boolean hasCause(ComponentSelectionCause cause) {
                for (ComponentSelectionDescriptor description : descriptions) {
                    if (description.getCause() == cause) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. platforms/core-runtime/stdlib-java-extensions/src/main/java/org/gradle/internal/exceptions/NonGradleCauseExceptionsHolder.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.internal.exceptions;
    
    public interface NonGradleCauseExceptionsHolder {
        boolean hasCause(Class<?> type);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 747 bytes
    - Viewed (0)
  4. platforms/core-runtime/stdlib-java-extensions/src/main/java/org/gradle/internal/exceptions/DefaultMultiCauseException.java

            }
            return message;
        }
    
        @Override
        public boolean hasCause(Class<?> type) {
            for (Throwable cause : getCauses()) {
                if (cause instanceof NonGradleCauseExceptionsHolder) {
                    boolean hasCauseOfType = ((NonGradleCauseExceptionsHolder) cause).hasCause(type);
                    if (hasCauseOfType) {
                        return true;
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/api/internal/plugins/SoftwareTypeRegistrationPluginTargetTest.groovy

            and: // returns metadata with no annotation present
            1 * propertyMetadata.getAnnotation(SoftwareType.class) >> Optional.empty()
    
            and:
            def e = thrown(DefaultMultiCauseException)
            e.hasCause(InvalidUserDataException)
        }
    
        def "throws exception when plugins are registered that expose multiple software types"() {
            given:
            def anotherPropertyMetadata = Mock(PropertyMetadata)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 03 16:02:29 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/internal/buildevents/BuildExceptionReporter.java

                if (hasCause(cause, type)) {
                    return true;
                }
                cause = cause.getCause();
            }
            return false;
        }
    
        private static boolean hasCause(Throwable cause, Class<?> type) {
            if (cause instanceof NonGradleCauseExceptionsHolder) {
                return ((NonGradleCauseExceptionsHolder) cause).hasCause(type);
            }
            return false;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 09:45:59 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  7. platforms/core-execution/workers/src/main/java/org/gradle/workers/internal/DefaultWorkerExecutor.java

            }
    
            private static String toMessage(String description) {
                return "A failure occurred while executing " + description;
            }
    
            @Override
            public boolean hasCause(Class<?> type) {
                return type.isInstance(getCause());
            }
        }
    
        private static class WorkItemExecution extends AbstractConditionalExecution<DefaultWorkResult> implements AsyncWorkCompletion {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 15:17:07 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/internal/analysisflags/flags.go

    	// if any -NAME flag is false, run all but those analyzers.
    	if multi {
    		var hasTrue, hasFalse bool
    		for _, ts := range enabled {
    			switch *ts {
    			case setTrue:
    				hasTrue = true
    			case setFalse:
    				hasFalse = true
    			}
    		}
    
    		var keep []*analysis.Analyzer
    		if hasTrue {
    			for _, a := range analyzers {
    				if *enabled[a] == setTrue {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  9. maven-core/src/test/resources/apiv4-repo/junit/junit/4.13.1/junit-4.13.1.jar

    ThrowableCauseMatche(org.hamcrest.Matcher); public void describeTo(org.hamcrest.Description); protected boolean matchesSafely(Throwable); protected void describeMismatchSafe(Throwable, org.hamcrest.Description); public static org.hamcrest.Matcher hasCause(org.hamcrest.Matcher); } org/junit/internal/matchers/ThrowableMessageMatc.class package org.junit.internal.matchers; public synchronized class ThrowableMessageMatc extends org.hamcrest.TypeSafeMatcher { private final org.hamcrest.Matcher matcher;...
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Dec 19 19:08:55 UTC 2023
    - 373.7K bytes
    - Viewed (0)
Back to top