public class BuildFailureException extends MyBuildException
MojoFailureException
in org.m2latex.mojo.AbstractLatexMojo#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
| Constructor and Description |
|---|
BuildFailureException(String message) |
BuildFailureException(String message,
Throwable cause) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringCopyright © 2016–2018 Simuline Organization (l2r). All rights reserved.