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 Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionMojoException(Object source, String shortMessage, String longMessage) Construct a newMojoExceptionexception providing the source and a short and long message: these messages are used to improve the message written at the end of Maven build.MojoException(String message) Construct a newMojoExecutionExceptionexception providing amessage.MojoException(String message, Throwable cause) Construct a newMojoExecutionExceptionexception wrapping an underlyingThrowableand providing amessage.MojoException(Throwable cause) Constructs a newMojoExecutionExceptionexception wrapping 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
Construct a newMojoExceptionexception providing the source and a short and long message: these messages are used to improve the message written at the end of Maven build. - 
MojoException
Construct a newMojoExecutionExceptionexception wrapping an underlyingThrowableand providing amessage. - 
MojoException
Construct a newMojoExecutionExceptionexception providing amessage. - 
MojoException
Constructs a newMojoExecutionExceptionexception 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.
 
 - 
 - 
Method Details
- 
getLongMessage
 - 
getSource
 
 -