View Javadoc
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.MojoExecutionException} 
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 MojoExecutionException is a fatal exception, 
12   * something unrecoverable happened. 
13   * You would throw a MojoExecutionException 
14   * if something happens that warrants a complete stop in a build; 
15   * you re trying to write to disk, but there is no space left, 
16   * or you were trying to publish to a remote repository, 
17   * but you can’t connect to it. 
18   * Throw a MojoExecutionException if there is no chance of a build continuing; 
19   * something terrible has happened 
20   * and you want the build to stop and the user to see a "BUILD ERROR" message. 
21   * <p>
22   * A MojoExecutionException is thrown if an unexpected problem occurs 
23   * (seems contradictuous). 
24   *
25   * Created: Fri Sep 30 15:01:16 2016
26   *
27   * @author <a href="mailto:rei3ner@arcor.de">Ernst Reissner</a>
28   * @version 1.0
29   */
30  public class BuildExecutionException extends AbstractBuildException {
31  
32    public BuildExecutionException(String message) {
33      super(message);
34      assert false;
35    }
36  
37    public BuildExecutionException(String message, Throwable cause) {
38      super(message, cause);
39      assert false;
40    }
41  }