public class MojoExecutionException extends AbstractMojoExecutionException
longMessage, source
Constructor and Description |
---|
MojoExecutionException(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. |
MojoExecutionException(String message)
Construct a new
MojoExecutionException exception providing a message . |
MojoExecutionException(String message,
Exception cause)
Construct a new
MojoExecutionException exception wrapping an underlying Exception
and providing a message . |
MojoExecutionException(String message,
Throwable cause)
Construct a new
MojoExecutionException exception wrapping an underlying Throwable
and providing a message . |
MojoExecutionException(Throwable cause)
Constructs a new
MojoExecutionException exception wrapping an underlying Throwable . |
getLongMessage, getSource
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public MojoExecutionException(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.source
- shortMessage
- longMessage
- public MojoExecutionException(String message, Exception cause)
MojoExecutionException
exception wrapping an underlying Exception
and providing a message
.message
- cause
- public MojoExecutionException(String message, Throwable cause)
MojoExecutionException
exception wrapping an underlying Throwable
and providing a message
.message
- cause
- public MojoExecutionException(String message)
MojoExecutionException
exception providing a message
.message
- public MojoExecutionException(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–2021 The Apache Software Foundation. All rights reserved.