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