Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for getCause (0.27 sec)

  1. maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginRealmCache.java

                    }
                });
            } catch (RuntimeException e) {
                if (e.getCause() instanceof PluginResolutionException) {
                    throw (PluginResolutionException) e.getCause();
                }
                if (e.getCause() instanceof PluginContainerException) {
                    throw (PluginContainerException) e.getCause();
                }
                throw e;
            }
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Dec 26 15:12:32 GMT 2022
    - 7.4K bytes
    - Viewed (0)
  2. maven-core/src/test/java/org/apache/maven/exception/DefaultExceptionHandlerTest.java

        @Test
        void testHandleExceptionLoopInCause() {
            // Some broken exception that does return "this" as getCause
            AtomicReference<Throwable> causeRef = new AtomicReference<>(null);
            Exception cause2 = new RuntimeException("loop") {
                @Override
                public synchronized Throwable getCause() {
                    return causeRef.get();
                }
            };
            causeRef.set(cause2);
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultToolchainsBuilder.java

                                    .location(toolchainsSource.getLocation())
                                    .strict(false)
                                    .build());
                    Location loc = e.getCause() instanceof XMLStreamException xe ? xe.getLocation() : null;
                    problems.add(new DefaultBuilderProblem(
                            toolchainsSource.getLocation(),
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/exception/DefaultExceptionHandler.java

            String fullMessage = (message != null) ? message : "";
    
            // To break out of possible endless loop when getCause returns "this"
            for (Throwable t = exception; t != null && t != t.getCause(); t = t.getCause()) {
                String exceptionMessage = t.getMessage();
    
                if (t instanceof AbstractMojoExecutionException) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Jul 19 15:37:28 GMT 2023
    - 10.4K bytes
    - Viewed (0)
  5. maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java

            if (e.getCause() instanceof MultipleArtifactsNotFoundException) {
                return true;
            }
            return e.getCause() instanceof org.eclipse.aether.resolution.ArtifactResolutionException
                    && e.getCause().getCause() instanceof ArtifactNotFoundException;
        }
    
        private boolean isNonTransferablePom(Exception e) {
            if (e.getCause() instanceof ArtifactResolutionException) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Sep 22 09:07:17 GMT 2023
    - 30.3K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultSettingsBuilder.java

                                        .location(settingsSource.getLocation())
                                        .strict(false)
                                        .build());
                        Location loc = e.getCause() instanceof XMLStreamException xe ? xe.getLocation() : null;
                        problems.add(new DefaultBuilderProblem(
                                settingsSource.getLocation(),
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 12K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/execution/ProjectExecutionEvent.java

        }
    
        public MavenProject getProject() {
            return project;
        }
    
        public List<MojoExecution> getExecutionPlan() {
            return executionPlan;
        }
    
        public Throwable getCause() {
            return cause;
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Dec 26 15:12:32 GMT 2022
    - 2.5K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/plugin/MojoException.java

        }
    
        /**
         * Constructs a new {@code MojoExecutionException} exception wrapping an underlying {@code Throwable}.
         *
         * @param cause the cause which is saved for later retrieval by the {@link #getCause()} method.
         *              A {@code null} value is permitted, and indicates that the cause is nonexistent or unknown.
         */
        public MojoException(Throwable cause) {
            super(cause);
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Mar 23 05:29:39 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  9. maven-core/src/main/java/org/apache/maven/project/collector/MultiModuleCollectionStrategy.java

                                && exc.getCause() instanceof PluginResolutionException
                                && exc.getCause().getCause() instanceof ArtifactResolutionException
                                && exc.getCause().getCause().getCause() instanceof ArtifactNotFoundException;
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Sep 22 09:07:17 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  10. maven-compat/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java

            initRepoSession(configuration);
    
            try {
                return projectBuilder.build(pom, configuration).getProject();
            } catch (Exception e) {
                Throwable cause = e.getCause();
                if (cause instanceof ModelBuildingException) {
                    String message = "In: " + pom + "\n\n";
                    for (ModelProblem problem : ((ModelBuildingException) cause).getProblems()) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 6.4K bytes
    - Viewed (0)
Back to top