• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

devonfw / IDEasy / 12298176528

12 Dec 2024 02:13PM UTC coverage: 67.066% (-0.05%) from 67.115%
12298176528

Pull #890

github

web-flow
Merge 4bc43aa4e into 75f5043e5
Pull Request #890: #888: fixed graalvm gu

2556 of 4158 branches covered (61.47%)

Branch coverage included in aggregate %.

6626 of 9533 relevant lines covered (69.51%)

3.06 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
cli/src/main/java/com/devonfw/tools/ide/cli/CliProcessException.java
1
package com.devonfw.tools.ide.cli;
2

3
import com.devonfw.tools.ide.process.ProcessResult;
4

5
/**
6
 * {@link CliException} that is thrown if a process failed (external tool executed) but we assume this is an error of the end-user.
7
 *
8
 * @see com.devonfw.tools.ide.process.ProcessErrorHandling#THROW_CLI
9
 */
10
public final class CliProcessException extends CliException {
11

12
  private final ProcessResult processResult;
13

14
  /**
15
   * The constructor.
16
   *
17
   * @param processResult the {@link #getProcessResult() process result}.
18
   */
19
  public CliProcessException(ProcessResult processResult) {
20

21
    this("Command " + processResult.getExecutable() + " failed with exit code " + processResult.getExitCode() + " - full commandline was "
×
22
        + processResult.getCommand(), processResult);
×
23
  }
×
24

25
  /**
26
   * The constructor.
27
   *
28
   * @param message the message to display.
29
   * @param processResult the {@link #getProcessResult() process result}.
30
   */
31
  public CliProcessException(String message, ProcessResult processResult) {
32

33
    super(message, processResult.getExitCode());
×
34
    this.processResult = processResult;
×
35
  }
×
36

37
  /**
38
   * @return the {@link ProcessResult}.
39
   */
40
  public ProcessResult getProcessResult() {
41

42
    return this.processResult;
×
43
  }
44
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc