[MNG-7164] Add constructor MojoExecutionException(Throwable)

This closes #474
This commit is contained in:
Gary Gregory 2021-05-29 09:31:49 -04:00 committed by Michael Osipov
parent 5fd536853f
commit ad2e084ba8
3 changed files with 38 additions and 0 deletions

View File

@ -41,6 +41,18 @@ public abstract class AbstractMojoExecutionException
super( message, cause ); 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() public String getLongMessage()
{ {
return longMessage; return longMessage;

View File

@ -76,4 +76,17 @@ public class MojoExecutionException
{ {
super( message ); 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 );
}
} }

View File

@ -65,4 +65,17 @@ public class MojoFailureException
{ {
super( message, cause ); 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 );
}
} }