Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for asFailure (0.14 sec)

  1. subprojects/core/src/main/java/org/gradle/internal/build/ExecutionResult.java

         */
        public abstract ExecutionResult<T> withFailures(ExecutionResult<Void> otherResult);
    
        /**
         * Casts a failed result.
         */
        public abstract <S> ExecutionResult<S> asFailure();
    
        public static <T> ExecutionResult<T> succeeded(T value) {
            return new Success<T>() {
                @Override
                public T getValue() {
                    return value;
                }
            };
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 03 03:31:42 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/internal/buildtree/DefaultBuildTreeLifecycleController.java

                    ExecutionResult<Void> result = workController.scheduleAndRunRequestedTasks(null);
                    if (!result.getFailures().isEmpty()) {
                        return result.asFailure();
                    }
                }
                T model = modelCreator.fromBuildModel(action);
                return ExecutionResult.succeeded(model);
            });
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 08 07:46:55 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/internal/build/ExecutionResultTest.groovy

            result.failures.empty
            result.rethrow()
    
            when:
            result.failure
    
            then:
            thrown(IllegalArgumentException)
    
            when:
            result.asFailure()
    
            then:
            thrown(IllegalArgumentException)
        }
    
        def "can query successful void result"() {
            def result = ExecutionResult.succeeded()
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 03 03:31:42 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/ConflictResolverDetails.java

        void select(T candidate);
    
        void fail(Throwable error);
    
        @Nullable
        T getSelected();
    
        @Nullable
        Throwable getFailure();
    
        boolean hasFailure();
    
        boolean hasSelected();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/ResponseProducer.java

     */
    
    package org.gradle.test.fixtures.server.http;
    
    import com.sun.net.httpserver.HttpExchange;
    
    import java.io.IOException;
    
    interface ResponseProducer {
        default boolean isFailure() {
            return false;
        }
    
        /**
         * Called to handle a request. Is *not* called under lock.
         */
        void writeTo(int requestId, HttpExchange exchange) throws IOException;
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/conflicts/DefaultConflictResolverDetails.java

        public T getSelected() {
            return selected;
        }
    
        @Nullable
        @Override
        public Throwable getFailure() {
            return failure;
        }
    
        @Override
        public boolean hasFailure() {
            return failure != null;
        }
    
        @Override
        public boolean hasSelected() {
            return selected != null;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/suggest/index/writer/SuggestWriterResult.java

        protected List<Throwable> failures = Collections.synchronizedList(new ArrayList<>());
    
        public void addFailure(final Throwable t) {
            failures.add(t);
        }
    
        public boolean hasFailure() {
            return !failures.isEmpty();
        }
    
        public List<Throwable> getFailures() {
            return failures;
        }
    
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/dependencysubstitution/DependencySubstitutionApplicator.java

                return result;
            }
    
            @Nullable
            public Throwable getFailure() {
                return failure;
            }
    
            public boolean hasFailure() {
                return failure != null;
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/AbstractFailure.java

        private final RuntimeException failure;
    
        public AbstractFailure(RuntimeException failure) {
            this.failure = failure;
        }
    
        @Override
        public boolean isFailure() {
            return true;
        }
    
        @Override
        public RuntimeException getFailure() {
            return failure;
        }
    
        @Override
        public void writeTo(int requestId, HttpExchange exchange) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  10. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/cli/RunBuildAction.java

                );
                if (result.hasFailure()) {
                    // Don't need to unpack the serialized failure. It will already have been reported and is not used by anything downstream of this action.
                    throw new ReportedException();
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:54:56 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top