- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 20 for withException (0.13 sec)
-
platforms/ide/problems-api/src/main/java/org/gradle/api/problems/internal/InternalProblemSpec.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 09:03:53 UTC 2024 - 3.3K bytes - Viewed (0) -
platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorProblemsApiIntegrationTest.groovy
getProblems().forNamespace("org.example.plugin").reporting(problem -> problem .id("type", "label") .stackLocation() .withException(new RuntimeException("Exception message", wrappedException)) ); // Write the current build operation id to a file
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 26 13:37:31 UTC 2024 - 5K bytes - Viewed (0) -
platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/JdkJavaCompiler.java
spec.severity(Severity.ERROR); spec.id("initialization-failed", "Java compilation initialization error", GradleCoreProblemGroup.compilation().java()); spec.details(ex.getLocalizedMessage()); spec.withException(ex); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jun 06 14:50:33 UTC 2024 - 5.9K bytes - Viewed (0) -
platforms/ide/problems-api/src/main/java/org/gradle/api/problems/ProblemSpec.java
ProblemSpec solution(String solution); /** * The exception causing this problem. * * @param e the exception. * @return this * @since 8.6 */ ProblemSpec withException(RuntimeException e); /** * Declares the severity of the problem. * * @param severity the severity * @return this * @since 8.6 */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Mar 06 13:35:08 UTC 2024 - 5.1K bytes - Viewed (0) -
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) -
platforms/extensibility/plugin-development/src/test/groovy/org/gradle/plugin/devel/tasks/internal/ValidationProblemSerializationTest.groovy
given: def problem = problemReporter.create { it.id("id", "label", GradleCoreProblemGroup.validation()) .withException(new RuntimeException("cause")) } when: def json = gson.toJson([problem]) def deserialized = ValidationProblemSerialization.parseMessageList(json) then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 04 08:30:15 UTC 2024 - 9.7K bytes - Viewed (0) -
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) -
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) -
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) -
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)