Skip to content

Commit

Permalink
[MNG-7164] Add constructor MojoExecutionException(Throwable)
Browse files Browse the repository at this point in the history
This closes #474
  • Loading branch information
Gary Gregory authored and michael-o committed Sep 24, 2021
1 parent ab54d17 commit 8882a9c
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
Expand Up @@ -41,6 +41,18 @@ public AbstractMojoExecutionException( String message, Throwable 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()
{
return longMessage;
Expand Down
Expand Up @@ -76,4 +76,17 @@ public MojoExecutionException( String 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 );
}

}
Expand Up @@ -65,4 +65,17 @@ public MojoFailureException( String message, Throwable 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 );
}

}

0 comments on commit 8882a9c

Please sign in to comment.