Class BuildFailureException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- eu.simuline.m2latex.core.MyBuildException
-
- eu.simuline.m2latex.core.BuildFailureException
-
- All Implemented Interfaces:
Serializable
public class BuildFailureException extends MyBuildException
This is needed as a wrapper toMojoFailureExceptioninMojo.execute()to avoid maven-specific classes.We read from the documentation which applies to this exception type also: A MojoFailureException is something less catastrophic (compared to a
MojoExecutionException), a goal can fail, but it might not be the end of the world for your Maven build. A unit test can fail, or a MD5 checksum can fail; both of these are potential problems, but you don’t want to return an exception that is going to kill the entire build. In this situation you would throw a MojoFailureException. Maven provides for different "resiliency" settings when it comes to project failure. Throwing this exception causes a "BUILD FAILURE" message to be displayed.A MojoFailureException is thrown if an expected problem (such as a compilation failure) occurs. Created: Fri Sep 30 15:01:16 2016
- Version:
- 1.0
- Author:
- Ernst Reissner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BuildFailureException(String message)BuildFailureException(String message, Throwable cause)
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-