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) Constructs a newMojoException
providing the source and a short and long message.MojoException
(String message) Constructs a newMojoException
providing amessage
.MojoException
(String message, Throwable cause) Constructs a newMojoException
wrapping an underlyingThrowable
and providing amessage
.MojoException
(Throwable cause) Constructs a newMojoExecutionException
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
Constructs a newMojoException
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
Constructs a newMojoException
wrapping an underlyingThrowable
and providing amessage
. -
MojoException
Constructs a newMojoException
providing amessage
. -
MojoException
Constructs a newMojoExecutionException
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
-