Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for withException (0.26 sec)

  1. platforms/documentation/docs/src/samples/ide/problems-api-usage/kotlin/reporters/script-plugin/src/main/kotlin/reporters/script.plugin.gradle.kts

                    id("broken-task", "Task should not be called")
                        .contextualLabel("Task 'failingTask' should not be called")
                        .severity(Severity.ERROR)
                        .withException(RuntimeException("The 'failingTask' should not be called"))
                        .solution("Please use 'successfulTask' instead of this task")
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 13:35:05 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/validation/DelegatingProblemBuilder.java

            return validateDelegate(delegate.additionalData(specType, config));
        }
    
        @Override
        public InternalProblemBuilder withException(RuntimeException e) {
            return validateDelegate(delegate.withException(e));
        }
    
        @Override
        public InternalProblemBuilder severity(Severity severity) {
            return validateDelegate(delegate.severity(severity));
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. platforms/ide/problems-api/src/integTest/groovy/org/gradle/api/problems/ProblemsServiceIntegrationTest.groovy

            given:
            withReportProblemTask """
                problems.forNamespace('org.example.plugin').reporting {
                    it.id('type', 'label')
                    .withException(new RuntimeException("test"))
                }
            """
    
            when:
            run('reportProblem')
    
            then:
            verifyAll(receivedProblem) {
                exception.message == 'test'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/execution/DefaultTaskSelector.java

                    configureProblem(spec, matcher, context);
                    String message = matcher.formatErrorMessage("Task", searchContext);
                    spec.contextualLabel(message)
                        .withException(new TaskSelectionException(message));
                });
            }
            String message = String.format("Cannot locate %s that match '%s' as %s", context.getType(), context.getOriginalPath(),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/samples/ide/problems-api-usage/groovy/reporters/script-plugin/src/main/groovy/reporters.script.plugin.gradle

                it.id('broken-task', 'Task should not be called')
                    .contextualLabel("Task 'failingTask' should not be called")
                    .severity(Severity.ERROR)
                    .withException(new RuntimeException("The 'failingTask' should not be called"))
                    .solution("Please use 'successfulTask' instead of this task")
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 13:35:05 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  6. platforms/enterprise/enterprise/src/integTest/groovy/org/gradle/internal/enterprise/DevelocityPluginEndOfBuildCallbackIntegrationTest.groovy

            buildFile """
                ${getProblemReportingScript """
                    problems.forNamespace('org.example.plugin').throwing {
                        it.id('type', 'label')
                        .withException(new RuntimeException('failed'))
                }"""}
    
                task $succeedingTaskName
            """
        }
    
        def "end of build listener is notified on success"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 11:17:11 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. platforms/ide/problems-api/src/main/java/org/gradle/api/problems/internal/InternalProblemBuilder.java

        @Override
        <U extends AdditionalDataSpec> InternalProblemBuilder additionalData(Class<? extends U> specType, Action<? super U> config);
    
        @Override
        InternalProblemBuilder withException(RuntimeException e);
    
        @Override
        InternalProblemBuilder severity(Severity severity);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r86/ProblemsServiceModelBuilderCrossVersionTest.groovy

                            it.${targetVersion < GradleVersion.version("8.8") ? 'label("label").category("testcategory")' : 'id("testcategory", "label")'}
                                .withException(new RuntimeException("test"))
                                ${pre86api ? ".undocumented()" : ""}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  9. platforms/core-runtime/files/src/main/java/org/gradle/internal/file/impl/DefaultDeleter.java

                }
                return FileDeletionResult.withException(original);
            }
        }
    
        protected static final class FileDeletionResult {
    
            static FileDeletionResult withoutException(boolean isSuccessful) {
                return new FileDeletionResult(isSuccessful, null);
            }
    
            static FileDeletionResult withException(Exception exception) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 15 17:10:06 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  10. platforms/ide/problems-api/src/main/java/org/gradle/api/problems/internal/DefaultProblemReporter.java

            DefaultProblemBuilder problemBuilder = new DefaultProblemBuilder(problemStream);
            spec.execute(problemBuilder);
            problemBuilder.withException(e);
            throw throwError(e, problemBuilder.build());
        }
    
        @Override
        public Problem create(Action<InternalProblemSpec> action) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 08:30:15 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top