1 package eu.simuline.m2latex.core;
2
3 // TBD: correct links
4 /**
5 * This is needed as a wrapper
6 * to {@link org.apache.maven.plugin.MojoFailureException}
7 * in { @link eu.simuline.m2latex.mojo.AbstractLatexMojo#execute()}
8 * to avoid maven-specific classes.
9 * <p>
10 * We read from the documentation which applies to this exception type also:
11 * A MojoFailureException is something less catastrophic
12 * (compared to a {@link org.apache.maven.plugin.MojoExecutionException}),
13 * a goal can fail, but it might not be the end of the world
14 * for your Maven build.
15 * A unit test can fail, or a MD5 checksum can fail;
16 * both of these are potential problems,
17 * but you don’t want to return an exception
18 * that is going to kill the entire build.
19 * In this situation you would throw a MojoFailureException.
20 * Maven provides for different "resiliency" settings
21 * when it comes to project failure.
22 * Throwing this exception causes a "BUILD FAILURE" message to be displayed.
23 * <p>
24 * A MojoFailureException is thrown if an expected problem
25 * (such as a compilation failure) occurs.
26 *
27 * Created: Fri Sep 30 15:01:16 2016
28 *
29 * @author <a href="mailto:rei3ner@arcor.de">Ernst Reissner</a>
30 * @version 1.0
31 */
32 public class BuildFailureException extends AbstractBuildException {
33
34 public BuildFailureException(String message) {
35 super(message);
36 }
37
38 public BuildFailureException(String message, Throwable cause) {
39 super(message, cause);
40 }
41 }