@Experimental public class MojoException extends MavenException
| Modifier and Type | Field and Description |
|---|---|
protected String |
longMessage |
protected Object |
source |
| Constructor and Description |
|---|
MojoException(Object source,
String shortMessage,
String longMessage)
Construct a new
MojoExecutionException 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 new
MojoExecutionException exception providing a message. |
MojoException(String message,
Exception cause)
Construct a new
MojoExecutionException exception wrapping an underlying Exception
and providing a message. |
MojoException(String message,
Throwable cause)
Construct a new
MojoExecutionException exception wrapping an underlying Throwable
and providing a message. |
MojoException(Throwable cause)
Constructs a new
MojoExecutionException exception wrapping an underlying Throwable. |
| Modifier and Type | Method and Description |
|---|---|
String |
getLongMessage() |
Object |
getSource() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MojoException(Object source, String shortMessage, String longMessage)
MojoExecutionException 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.public MojoException(String message, Exception cause)
MojoExecutionException exception wrapping an underlying Exception
and providing a message.public MojoException(String message, Throwable cause)
MojoExecutionException exception wrapping an underlying Throwable
and providing a message.public MojoException(String message)
MojoExecutionException exception providing a message.public MojoException(Throwable cause)
MojoExecutionException exception wrapping an underlying Throwable.cause - the cause which is saved for later retrieval by the Throwable.getCause() method.
A null value is permitted, and indicates that the cause is nonexistent or unknown.Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.