Maven 2 & 3

Support Exception Chaining for MojoFailureException

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: 2.0.7
  • Fix Version/s: 2.0.9
  • Component/s: Plugin API
  • Labels:
    None
  • Number of attachments :
    1

Description

It would be helpful if MojoFailureException provides constructors to supply an inner exception, just like MojoExecutionException does already.

Activity

Hide
Benjamin Bentmann added a comment -

This patch provides the requested API extension.

A little off-topic: The constructor MojoExecutionException(String, Exception) seems to be superfluous, callers would be automatically routed to MojoExecutionException(String, Throwable).

Show
Benjamin Bentmann added a comment - This patch provides the requested API extension. A little off-topic: The constructor MojoExecutionException(String, Exception) seems to be superfluous, callers would be automatically routed to MojoExecutionException(String, Throwable).
Hide
Vincent Siveton added a comment -

Patch applied. Thanks!

Show
Vincent Siveton added a comment - Patch applied. Thanks!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: