Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for printStackTrace (0.17 sec)

  1. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/logging/SystemStreamLog.java

            error.printStackTrace(pWriter);
    
            System.out.println("[" + prefix + "] " + sWriter.toString());
        }
    
        private void print(String prefix, CharSequence content, Throwable error) {
            StringWriter sWriter = new StringWriter();
            PrintWriter pWriter = new PrintWriter(sWriter);
    
            error.printStackTrace(pWriter);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. compat/maven-embedder/src/test/java/org/apache/maven/cli/transfer/ConsoleMavenTransferListenerTest.java

            try {
                startLatch.await();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
    
            // wait for all thread to end
            try {
                endLatch.await();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
    
            // despite all are back, we need to make sure all the events are processed (are async)
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/ProtoLogger.java

            PrintWriter pw = level == Level.ERROR ? err : level == Level.WARN ? out : null;
            if (pw != null) {
                pw.print(level.name() + " " + message);
                if (error != null) {
                    error.printStackTrace(pw);
                }
            }
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/timer/MonitorTarget.java

            try (ByteArrayOutputStream baos = new ByteArrayOutputStream();
                    PrintWriter writer = new PrintWriter(baos, false, Constants.CHARSET_UTF_8)) {
                exception.printStackTrace(writer);
                writer.flush();
                append(buf, "exception", () -> StringEscapeUtils.escapeJson(new String(baos.toByteArray(), Constants.CHARSET_UTF_8)));
            } catch (final IOException e) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. compat/maven-embedder/src/main/java/org/apache/maven/cli/logging/Slf4jStdoutLogger.java

        public void error(String msg) {
            out.print(ERROR);
            out.println(msg);
        }
    
        public void error(String msg, Throwable t) {
            error(msg);
    
            if (null != t) {
                t.printStackTrace(out);
            }
        }
    
        //
        // Don't need any of this
        //
        public String getName() {
            return null;
        }
    
        public boolean isTraceEnabled() {
            return false;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/DefaultEncryptInvoker.java

            } catch (Exception e) {
                if (context.invokerRequest.options().showErrors().orElse(false)) {
                    context.terminal.writer().println(e.getMessage());
                    e.printStackTrace(context.terminal.writer());
                } else {
                    context.terminal.writer().println(e.getMessage());
                }
                return ERROR;
            } finally {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. api/maven-api-di/src/main/java/org/apache/maven/di/tool/DiIndexProcessor.java

        }
    
        private void logError(String message, Exception e) {
            StringWriter sw = new StringWriter();
            PrintWriter pw = new PrintWriter(sw);
            e.printStackTrace(pw);
            String stackTrace = sw.toString();
    
            String fullMessage = message + "\n" + "Exception: "
                    + e.getClass().getName() + "\n" + "Message: "
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Mon Sep 16 06:25:19 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  8. compat/maven-compat/src/test/java/org/apache/maven/artifact/resolver/ArtifactResolverTest.java

                    System.err.println("Missing: " + artifact);
                }
            }
    
            if (result.hasExceptions()) {
                for (Exception e : result.getExceptions()) {
                    e.printStackTrace();
                }
            }
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  9. compat/maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java

            if (logger == null) {
                System.err.println(message);
                if (showStackTrace && e != null) {
                    e.printStackTrace(System.err);
                }
                return;
            }
            if (showStackTrace) {
                logger.error(message, e);
            } else {
                logger.error(message);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/VersionTest.java

                    versions.add(newVersion(UUID.randomUUID().toString()));
                }
                try {
                    Collections.sort(versions);
                } catch (Exception e) {
                    e.printStackTrace(System.err);
                    System.err.println("The UUIDs used");
                    System.err.println(versions.stream().map(Version::toString).collect(Collectors.joining("\n")));
                    fail("unexpected exception");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.1K bytes
    - Viewed (0)
Back to top