Package org.apache.maven.api.plugin
Class MojoException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.maven.api.services.MavenException
org.apache.maven.api.plugin.MojoException
- All Implemented Interfaces:
- Serializable
An exception occurring during the execution of a plugin.
- Since:
- 4.0.0
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionMojoException(Object source, String shortMessage, String longMessage) Constructs a newMojoExceptionproviding the source and a short and long message.MojoException(String message) Constructs a newMojoExceptionproviding amessage.MojoException(String message, Throwable cause) Constructs a newMojoExceptionwrapping an underlyingThrowableand providing amessage.MojoException(Throwable cause) Constructs a newMojoExecutionExceptionwrapping an underlyingThrowable.
- 
Method SummaryMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Field Details- 
source
- 
longMessage
 
- 
- 
Constructor Details- 
MojoExceptionConstructs a newMojoExceptionproviding the source and a short and long message. These messages are used to improve the message written at the end of Maven build.
- 
MojoExceptionConstructs a newMojoExceptionwrapping an underlyingThrowableand providing amessage.
- 
MojoExceptionConstructs a newMojoExceptionproviding amessage.
- 
MojoExceptionConstructs a newMojoExecutionExceptionwrapping 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.
 
 
- 
- 
Method Details- 
getLongMessage
- 
getSource
 
-