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

Ekryd / sortpom / 3448

15 Jul 2024 09:05AM CUT coverage: 99.841%. Remained the same
3448

push

circleci

web-flow
build(deps): bump org.codehaus.mojo:versions-maven-plugin (#439)

Bumps [org.codehaus.mojo:versions-maven-plugin](https://github.com/mojohaus/versions) from 2.17.0 to 2.17.1.
- [Release notes](https://github.com/mojohaus/versions/releases)
- [Changelog](https://github.com/mojohaus/versions/blob/master/ReleaseNotes.md)
- [Commits](https://github.com/mojohaus/versions/compare/2.17.0...2.17.1)

---
updated-dependencies:
- dependency-name: org.codehaus.mojo:versions-maven-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

1256 of 1258 relevant lines covered (99.84%)

1.0 hits per line

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

100.0
/maven-plugin/src/main/java/sortpom/exception/ExceptionConverter.java
1
package sortpom.exception;
2

3
import org.apache.maven.plugin.MojoFailureException;
4

5
/**
6
 * Converts internal runtime FailureException in a method to a MojoFailureException in order to give
7
 * nice output to the Maven framework
8
 */
9
public class ExceptionConverter {
10
  private final Runnable method;
11

12
  public ExceptionConverter(Runnable method) {
1✔
13
    this.method = method;
1✔
14
  }
1✔
15

16
  public void executeAndConvertException() throws MojoFailureException {
17
    try {
18
      method.run();
1✔
19
    } catch (FailureException fex) {
1✔
20
      if (fex.getCause() != null) {
1✔
21
        throw new MojoFailureException(fex.getMessage(), fex.getCause());
1✔
22
      } else {
23
        throw new MojoFailureException(fex.getMessage());
1✔
24
      }
25
    }
1✔
26
  }
1✔
27
}
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