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

devonfw / IDEasy / 12125578396

02 Dec 2024 06:25PM UTC coverage: 67.265% (+0.3%) from 67.008%
12125578396

push

github

web-flow
#824: fix git url with branch (#828)

2509 of 4080 branches covered (61.5%)

Branch coverage included in aggregate %.

6565 of 9410 relevant lines covered (69.77%)

3.08 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 processResult the {@link #getProcessResult() process result}.
29
   */
30
  public CliProcessException(String message, ProcessResult processResult) {
31

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

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

41
    return this.processResult;
×
42
  }
43
}
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