Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 53 for getExceptions (0.13 sec)

  1. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java

                        result.setVersion(subResult.getVersion());
                        result.setRepository(subResult.getRepository());
                        for (Exception exception : subResult.getExceptions()) {
                            result.addException(exception);
                        }
                    }
                } else {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/DefaultMavenInvoker.java

                if ((i == lines.length - 1)
                        && (context.invokerRequest.options().showErrors().orElse(false)
                                || (summary.getException() instanceof InternalErrorException))) {
                    context.logger.error(line, summary.getException());
                } else {
                    context.logger.error(line);
                }
    
                currentColor = nextColor;
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  3. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

                line = indent + line + ("".equals(nextColor) ? "" : ANSI_RESET);
    
                if ((i == lines.length - 1) && (showErrors || (summary.getException() instanceof InternalErrorException))) {
                    slf4jLogger.error(line, summary.getException());
                } else {
                    slf4jLogger.error(line);
                }
    
                currentColor = nextColor;
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 76.8K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultEvent.java

            return Optional.ofNullable(delegate.getMojoExecution()).map(me -> new DefaultMojoExecution(session, me));
        }
    
        @Override
        public Optional<Exception> getException() {
            return Optional.ofNullable(delegate.getException());
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProblemCollector.java

            if (modelId == null) {
                modelId = getModelId();
                source = getSource();
            }
    
            if (line <= 0 && column <= 0 && req.getException() instanceof ModelParseException) {
                ModelParseException e = (ModelParseException) req.getException();
                line = e.getLineNumber();
                column = e.getColumnNumber();
            }
    
            ModelProblem problem = new DefaultModelProblem(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/internal/aether/LoggingRepositoryListener.java

            logger.debug("Installing {} to {}", event.getMetadata(), event.getFile());
        }
    
        @Override
        public void metadataResolved(RepositoryEvent event) {
            Exception e = event.getException();
            if (e != null) {
                if (e instanceof MetadataNotFoundException) {
                    logger.debug(e.getMessage());
                } else if (logger.isDebugEnabled()) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbSessionImpl.java

                        }
    
                    });
                }
                catch ( PrivilegedActionException e ) {
                    if ( e.getException() instanceof SmbException ) {
                        throw (SmbException) e.getException();
                    }
                    throw new SmbException("Unexpected exception during context initialization", e);
                }
            }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Nov 14 17:41:04 UTC 2021
    - 49K bytes
    - Viewed (0)
  8. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/util/ConsoleTransferListener.java

        }
    
        @Override
        public void transferFailed(TransferEvent event) {
            transferCompleted(event);
    
            println(
                    "transferFailed",
                    event.getException().getClass() + ": " + event.getException().getMessage());
        }
    
        private void transferCompleted(TransferEvent event) {
            downloads.remove(event.getResource());
    
            StringBuilder buffer = new StringBuilder(64);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  9. compat/maven-builder-support/src/test/java/org/apache/maven/building/DefaultProblemCollectorTest.java

            assertEquals(-1, p1.getColumnNumber());
            assertNull(p1.getException());
    
            Problem p2 = collector.getProblems().get(1);
            assertEquals(Severity.WARNING, p2.getSeverity());
            assertEquals("", p2.getMessage());
            assertEquals(42, p2.getLineNumber());
            assertEquals(127, p2.getColumnNumber());
            assertEquals(e2, p2.getException());
        }
    
        @Test
        void testSetSource() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/execution/ExecutionEvent.java

         */
        MojoExecution getMojoExecution();
    
        /**
         * Gets the exception that caused the event (if any).
         *
         * @return The exception or {@code null} if none.
         */
        Exception getException();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top