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
-
Constructor Summary
ConstructorDescriptionMojoException
(Object source, String shortMessage, String longMessage) Construct a newMojoException
exception 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 newMojoExecutionException
exception providing amessage
.MojoException
(String message, Throwable cause) Construct a newMojoExecutionException
exception wrapping an underlyingThrowable
and providing amessage
.MojoException
(Throwable cause) Constructs a newMojoExecutionException
exception 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 newMojoException
exception 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 newMojoExecutionException
exception wrapping an underlyingThrowable
and providing amessage
. -
MojoException
Construct a newMojoExecutionException
exception providing amessage
. -
MojoException
Constructs a newMojoExecutionException
exception wrapping an underlyingThrowable
.- Parameters:
cause
- the cause which is saved for later retrieval by theThrowable.getCause()
method. Anull
value is permitted, and indicates that the cause is nonexistent or unknown.
-
-
Method Details
-
getLongMessage
-
getSource
-