Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 15 for addException (0.14 seconds)

  1. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/MultiThreadedBuilder.java

                    }
                } catch (InterruptedException e) {
                    rootSession.getResult().addException(e);
                    break;
                } catch (ExecutionException e) {
                    // TODO MNG-5766 changes likely made this redundant
                    rootSession.getResult().addException(e);
                    break;
                }
            }
        }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jul 16 03:42:09 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  2. impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionResult.java

            return this;
        }
    
        @Override
        public List<Throwable> getExceptions() {
            return exceptions;
        }
    
        @Override
        public MavenExecutionResult addException(Throwable t) {
            exceptions.add(t);
    
            return this;
        }
    
        @Override
        public boolean hasExceptions() {
            return !getExceptions().isEmpty();
        }
    
        @Override
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  3. impl/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionResult.java

        // - project building exception
        // - invalid project model exception: list of markers
        // - xmlpull parser exception
        List<Throwable> getExceptions();
    
        MavenExecutionResult addException(Throwable e);
    
        boolean hasExceptions();
    
        /**
         * Gets the build summary for the specified project.
         *
         * @param project The project to get the build summary for, must not be {@code null}.
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.9K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/io/MoreFiles.java

              dir.deleteDirectory(path);
            }
          } else {
            dir.deleteFile(path);
          }
    
          return exceptions;
        } catch (IOException e) {
          return addException(exceptions, e);
        }
      }
    
      /**
       * Secure method for deleting the contents of a directory using {@code SecureDirectoryStream}.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Apr 14 16:07:06 GMT 2025
    - 34.6K bytes
    - Click Count (0)
  5. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/ConcurrentLifecycleStarter.java

                executor.execute(session, reactorContext, taskSegments);
    
            } catch (Exception e) {
                session.getResult().addException(e);
            } finally {
                eventCatapult.fire(ExecutionEvent.Type.SessionEnded, session, null);
            }
        }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 8.3K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/BuilderCommon.java

                Throwable t,
                final Instant buildStartTime) {
            // record the error and mark the project as failed
            Instant buildEndTime = MonotonicClock.now();
            buildContext.getResult().addException(t);
            buildContext
                    .getResult()
                    .addBuildSummary(new BuildFailure(mavenProject, Duration.between(buildStartTime, buildEndTime), t));
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jan 10 08:42:00 GMT 2025
    - 10.3K bytes
    - Click Count (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/event/ExecutionEventLogger.java

                        && recorder.hasReachedMaxLevel()) {
                    event.getSession()
                            .getResult()
                            .addException(
                                    new Exception("Build failed due to log statements with a higher severity than allowed. "
                                            + "Fix the logged issues or remove flag --fail-on-severity (-fos)."));
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Dec 13 15:40:45 GMT 2024
    - 17.5K bytes
    - Click Count (0)
  8. compat/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java

                        && recorder.hasReachedMaxLevel()) {
                    event.getSession()
                            .getResult()
                            .addException(
                                    new Exception("Build failed due to log statements with a higher severity than allowed. "
                                            + "Fix the logged issues or remove flag --fail-on-severity (-fos)."));
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Nov 08 08:49:11 GMT 2024
    - 17.2K bytes
    - Click Count (0)
  9. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/BuildPlanExecutor.java

            void execute() {
                try (var phase = executor.phase()) {
                    plan();
                    executePlan();
                } catch (Exception e) {
                    session.getResult().addException(e);
                }
            }
    
            @Override
            public void close() {
                this.executor.close();
            }
    
            /**
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Oct 16 06:12:36 GMT 2025
    - 55.1K bytes
    - Click Count (0)
  10. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultArtifactDescriptorReader.java

                    pomArtifact = pomArtifact.setVersion(versionResult.getVersion());
                } catch (VersionResolutionException e) {
                    result.addException(e);
                    throw new ArtifactDescriptorException(result);
                }
    
                if (!visited.add(a.getGroupId() + ':' + a.getArtifactId() + ':' + a.getBaseVersion())) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jan 10 08:42:00 GMT 2025
    - 17.1K bytes
    - Click Count (0)
Back to Top