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