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 Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionMojoException(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 Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 
- 
Field Details
- 
source
 - 
longMessage
 
 - 
 - 
Constructor Details
- 
MojoException
 - 
MojoException
 - 
MojoException
Constructs a newMojoExceptionproviding amessage. - 
MojoException
Constructs a newMojoExecutionExceptionwrapping 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.
 
 - 
 - 
Method Details
- 
getLongMessage
 - 
getSource
 
 -