mirror of https://github.com/apache/maven.git
[MNG-7164] Add constructor MojoExecutionException(Throwable)
This closes #474
This commit is contained in:
parent
ab54d17dc2
commit
8882a9c599
|
@ -41,6 +41,18 @@ public abstract class AbstractMojoExecutionException
|
|||
super( message, cause );
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a new {@code AbstractMojoExecutionException} exception wrapping an underlying {@code Throwable}.
|
||||
*
|
||||
* @param cause the cause which is saved for later retrieval by the {@link #getCause()} method.
|
||||
* A {@code null} value is permitted, and indicates that the cause is nonexistent or unknown.
|
||||
* @since 3.8.3
|
||||
*/
|
||||
public AbstractMojoExecutionException( Throwable cause )
|
||||
{
|
||||
super( cause );
|
||||
}
|
||||
|
||||
public String getLongMessage()
|
||||
{
|
||||
return longMessage;
|
||||
|
|
|
@ -76,4 +76,17 @@ public class MojoExecutionException
|
|||
{
|
||||
super( message );
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a new {@code MojoExecutionException} exception wrapping an underlying {@code Throwable}.
|
||||
*
|
||||
* @param cause the cause which is saved for later retrieval by the {@link #getCause()} method.
|
||||
* A {@code null} value is permitted, and indicates that the cause is nonexistent or unknown.
|
||||
* @since 3.8.3
|
||||
*/
|
||||
public MojoExecutionException( Throwable cause )
|
||||
{
|
||||
super( cause );
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -65,4 +65,17 @@ public class MojoFailureException
|
|||
{
|
||||
super( message, cause );
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a new {@code MojoFailureException} exception wrapping an underlying {@code Throwable}.
|
||||
*
|
||||
* @param cause the cause which is saved for later retrieval by the {@link #getCause()} method.
|
||||
* A {@code null} value is permitted, and indicates that the cause is nonexistent or unknown.
|
||||
* @since 3.8.3
|
||||
*/
|
||||
public MojoFailureException( Throwable cause )
|
||||
{
|
||||
super( cause );
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue