Package org.apache.maven.plugin
Class MojoFailureException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.maven.plugin.AbstractMojoExecutionException
org.apache.maven.plugin.MojoFailureException
- All Implemented Interfaces:
Serializable
An exception occurring during the execution of a plugin (such as a compilation failure).
Throwing this exception causes a "BUILD FAILURE" message to be displayed.
Throwing this exception causes a "BUILD FAILURE" message to be displayed.
- Author:
- Brett Porter
- See Also:
-
Field Summary
Fields inherited from class org.apache.maven.plugin.AbstractMojoExecutionException
longMessage, source -
Constructor Summary
ConstructorsConstructorDescriptionMojoFailureException(Object source, String shortMessage, String longMessage) Construct a newMojoFailureExceptionexception providing the source and a short and long message: these messages are used to improve the message written at the end of Maven build.MojoFailureException(String message) Construct a newMojoFailureExceptionexception providing a message.MojoFailureException(String message, Throwable cause) Construct a newMojoFailureExceptionexception wrapping an underlyingThrowableand providing amessage.MojoFailureException(Throwable cause) Constructs a newMojoFailureExceptionexception wrapping an underlyingThrowable. -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojoExecutionException
getLongMessage, getSourceMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MojoFailureException
Construct a newMojoFailureExceptionexception providing the source and a short and long message: these messages are used to improve the message written at the end of Maven build.- Parameters:
source-shortMessage-longMessage-
-
MojoFailureException
Construct a newMojoFailureExceptionexception providing a message.- Parameters:
message-
-
MojoFailureException
Construct a newMojoFailureExceptionexception wrapping an underlyingThrowableand providing amessage.- Parameters:
message-cause-- Since:
- 2.0.9
-
MojoFailureException
Constructs a newMojoFailureExceptionexception wrapping an underlyingThrowable.- Parameters:
cause- the cause which is saved for later retrieval by theThrowable.getCause()method. Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.- Since:
- 3.8.3
-