Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MNG-7164] Add constructor MojoExecutionException(Throwable). #474

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 );
}

/**
* 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
Original file line number Diff line number Diff line change
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 );
}

}
Original file line number Diff line number Diff line change
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 );
}

}