Skip to content

Commit

Permalink
[MNG-7164] Add constructor MojoExecutionException(Throwable).
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Gregory committed May 29, 2021
1 parent d6c9614 commit a10f73d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@ public AbstractMojoExecutionException( String message, Throwable cause )
super( message, cause );
}

/**
* Construct a new <code>AbstractMojoExecutionException</code> exception wrapping an underlying <code>Throwable</code>.
*
* @param message
* @param cause
* @since 3.8.2
*/
public AbstractMojoExecutionException( Throwable cause )
{
super( cause );
}

public String getLongMessage()
{
return longMessage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,17 @@ public MojoExecutionException( String message )
{
super( message );
}

/**
* Construct a new <code>MojoExecutionException</code> exception wrapping an underlying <code>Throwable</code>.
*
* @param message
* @param cause
* @since 3.8.2
*/
public MojoExecutionException( Throwable cause )
{
super( cause );
}

}

0 comments on commit a10f73d

Please sign in to comment.