Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for withException (0.49 sec)

  1. 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)
  2. 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)
  3. platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/impl/DefaultDeleterTest.groovy

                        switch (deletionAction.apply(file)) {
                            case DeletionAction.EXCEPTION:
                                return DefaultDeleter.FileDeletionResult.withException(new Exception("ROOT CAUSE"))
                            case DeletionAction.FAILURE:
                                return DefaultDeleter.FileDeletionResult.withoutException(false)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 12:40:48 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  4. platforms/ide/problems-api/src/main/java/org/gradle/api/problems/internal/DefaultProblemBuilder.java

                config.execute((U) additionalDatabuilder);
                additionalData = additionalDatabuilder.build();
            }
            return this;
        }
    
        @Override
        public InternalProblemBuilder withException(RuntimeException e) {
            this.exception = e;
            return this;
        }
    
        @Nullable
        RuntimeException getException() {
            return exception;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 08:30:15 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  5. platforms/jvm/language-groovy/src/main/java/org/gradle/api/internal/tasks/compile/daemon/DaemonGroovyCompiler.java

                        .contextualLabel(contextualMessage)
                        .solution("Check if the installation is not a JRE but a JDK.")
                        .severity(Severity.ERROR)
                        .withException(new IllegalStateException(contextualMessage))
                    );
                } else {
                    languageGroovyClasspath = languageGroovyClasspath.plus(Collections.singletonList(toolsJar));
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 05:33:15 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/execution/selection/DefaultBuildTaskSelector.java

            spec.severity(Severity.ERROR);
            ((InternalProblemSpec) spec).additionalData(GeneralDataSpec.class, data -> data.put("requestedPath", Objects.requireNonNull(requestedPath)));
            spec.withException(e);
        }
    
        private TaskSelector.SelectionContext sanityCheckPath(String name, String type) {
            // Don't allow paths that are:
            // - empty or blank
            // - the root path
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 14K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/groovy/scripts/internal/DefaultScriptCompilationHandler.java

                .contextualLabel(message)
                .lineInFileLocation(source.getFileName(), lineNumber)
                .severity(Severity.ERROR)
                .withException(new ScriptCompilationException(message, e, source, lineNumber))
            );
        }
    
        private static CompilerConfiguration createBaseCompilerConfiguration(Class<? extends Script> scriptBaseClass) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 20.6K bytes
    - Viewed (0)
Back to top