Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 134 for thrown (0.04 seconds)

  1. impl/maven-core/src/test/java/org/apache/maven/internal/impl/DefaultProjectManagerTest.java

            assertExceptionMessageContains("", "anotherArtifact");
    
            // Verify that no exception is thrown when the artifactId is the module name
            when(artifact.getArtifactId()).thenReturn("org.foo.bar");
            projectManager.attachArtifact(project, artifact, artifactPath);
    
            // Verify that an exception is thrown when the groupId differs
            when(artifact.getGroupId()).thenReturn("anotherGroup");
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Dec 17 16:17:01 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  2. impl/maven-core/src/test/java/org/apache/maven/project/DefaultMavenProjectBuilderTest.java

            File f1 = getTestFile(
                    "src/test/resources/projects/parent-version-range-local-child-without-version/child/pom.xml");
    
            ProjectBuildingException e = assertThrows(
                    ProjectBuildingException.class,
                    () -> getProject(f1),
                    "Expected 'ProjectBuildingException' not thrown.");
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 17:20:31 GMT 2025
    - 33.7K bytes
    - Click Count (0)
  3. build-logic/build-update-utils/src/test/groovy/gradlebuild/buildutils/tasks/UpdateAgpVersionsTest.groovy

            def allVersions = ["8.9.0", "9.0.0"]
    
            when:
            UpdateAgpVersions.selectVersionsFrom(gradleVersion, minimumSupported, allVersions)
    
            then:
            def ex = thrown(IllegalArgumentException)
            ex.message == "minimumSupported must be at least 9.0.0, was 8.9.0"
        }
    
        def "fail when minimumSupported higher than gradle major when no matching gradle major stable or rc available"() {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Oct 24 09:10:28 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  4. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/InvokerException.java

    import org.apache.maven.api.annotations.Nullable;
    import org.apache.maven.api.services.MavenException;
    
    /**
     * Represents an exception that occurs during the invocation of a Maven build or command.
     * This exception is typically thrown when there are errors during the execution of a Maven
     * process, such as build failures, plugin errors, or other runtime issues.
     *
     * @since 4.0.0
     */
    @Experimental
    public class InvokerException extends MavenException {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Oct 16 10:47:37 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  5. build-logic/build-update-utils/src/test/groovy/gradlebuild/buildutils/tasks/UpdateKotlinVersionsTest.groovy

            given:
            def allVersions = ["2.0.0", "2.0.0-RC1", "2.0.0-Beta1"]
    
            when:
            UpdateKotlinVersions.selectVersionsFrom(minimumSupported, allVersions)
    
            then:
            def ex = thrown(IllegalArgumentException)
            ex.message == "Minimum supported '1.9.10' was not found in available versions: [2.0.0, 2.0.0-RC1, 2.0.0-Beta1]"
        }
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Oct 29 08:29:55 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomBuilder.java

                throws ModelBuilderException {
            ModelBuilderResult result = buildModel(session, src);
            Model model = result.getRawModel();
            return transformPom(model, project);
        }
    
        protected Model buildBomWithoutFlatten(RepositorySystemSession session, MavenProject project, ModelSource src)
                throws ModelBuilderException {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Nov 27 07:40:26 GMT 2025
    - 21.2K bytes
    - Click Count (0)
  7. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    ///
    
    ## A dependency with `yield` and `try` { #a-dependency-with-yield-and-try }
    
    If you use a `try` block in a dependency with `yield`, you'll receive any exception that was thrown when using the dependency.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 12.9K bytes
    - Click Count (0)
  8. RELEASE.md

        *   Add determinism-unimplemented exception-throwing to the following ops.
            When op-determinism is expected (i.e. after
            `tf.config.experimental.enable_op_determinism` has been called), an
            attempt to use the specified paths through the following ops on a GPU
            will cause `tf.errors.UnimplementedError` (with an understandable
            message), unless otherwise specified, to be thrown.
    Created: Tue Dec 30 12:39:10 GMT 2025
    - Last Modified: Tue Oct 28 22:27:41 GMT 2025
    - 740.4K bytes
    - Click Count (3)
  9. impl/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java

                PluginDescriptorBuilder.StreamSupplier is, Plugin plugin, String descriptorLocation)
                throws PluginDescriptorParsingException {
            try {
                return builder.build(is, descriptorLocation);
            } catch (PlexusConfigurationException e) {
                throw new PluginDescriptorParsingException(plugin, descriptorLocation, e);
            }
        }
    
        @Override
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Dec 09 16:35:21 GMT 2025
    - 46.4K bytes
    - Click Count (0)
  10. compat/maven-embedder/src/main/java/org/apache/maven/cli/internal/extension/model/io/xpp3/CoreExtensionsXpp3Reader.java

         * @param attribute a attribute object.
         * @throws XmlPullParserException XmlPullParserException if
         * any.
         * @throws IOException IOException if any.
         */
        private void checkUnknownAttribute(XmlPullParser parser, String attribute, String tagName, boolean strict)
                throws XmlPullParserException, IOException {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Oct 27 13:24:03 GMT 2025
    - 25.3K bytes
    - Click Count (0)
Back to Top