Package org.apache.maven.plugin
Class MojoExecutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.maven.plugin.AbstractMojoExecutionException
org.apache.maven.plugin.MojoExecutionException
- All Implemented Interfaces:
- Serializable
An exception occurring during the execution of a plugin.
Throwing this exception causes a "BUILD ERROR" message to be displayed.
Throwing this exception causes a "BUILD ERROR" message to be displayed.
- See Also:
- 
Field SummaryFields inherited from class org.apache.maven.plugin.AbstractMojoExecutionExceptionlongMessage, source
- 
Constructor SummaryConstructorsConstructorDescriptionMojoExecutionException(Object source, String shortMessage, String longMessage) Construct a newMojoExecutionExceptionexception providing the source and a short and long message: these messages are used to improve the message written at the end of Maven build.MojoExecutionException(String message) Construct a newMojoExecutionExceptionexception providing amessage.MojoExecutionException(String message, Exception cause) Construct a newMojoExecutionExceptionexception wrapping an underlyingExceptionand providing amessage.MojoExecutionException(String message, Throwable cause) Construct a newMojoExecutionExceptionexception wrapping an underlyingThrowableand providing amessage.MojoExecutionException(Throwable cause) Constructs a newMojoExecutionExceptionexception wrapping an underlyingThrowable.
- 
Method SummaryMethods inherited from class org.apache.maven.plugin.AbstractMojoExecutionExceptiongetLongMessage, getSourceMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
MojoExecutionExceptionConstruct a newMojoExecutionExceptionexception 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-
 
- 
MojoExecutionExceptionConstruct a newMojoExecutionExceptionexception wrapping an underlyingExceptionand providing amessage.- Parameters:
- message-
- cause-
 
- 
MojoExecutionExceptionConstruct a newMojoExecutionExceptionexception wrapping an underlyingThrowableand providing amessage.- Parameters:
- message-
- cause-
 
- 
MojoExecutionExceptionConstruct a newMojoExecutionExceptionexception providing amessage.- Parameters:
- message-
 
- 
MojoExecutionExceptionConstructs a newMojoExecutionExceptionexception wrapping an underlyingThrowable.- Parameters:
- cause- the cause which is saved for later retrieval by the- Throwable.getCause()method. A- nullvalue is permitted, and indicates that the cause is nonexistent or unknown.
- Since:
- 3.8.3
 
 
-