Elliotte Rusty Harold created MPH-218:
-----------------------------------------
Summary: Embed original exceptions as cause in DescribeMojo
Key: MPH-218
URL: https://issues.apache.org/jira/browse/MPH-218
Project: Maven Help Plugin
Issue Type: Task
Reporter: Elliotte Rusty Harold
{{ return output;
} catch (SecurityException e) {
throw new MojoFailureException("SecurityException: " +
e.getMessage());
} catch (IllegalArgumentException e) {
throw new MojoFailureException("IllegalArgumentException: " +
e.getMessage());
} catch (NoSuchMethodException e) {
throw new MojoFailureException("NoSuchMethodException: " +
e.getMessage());
} catch (IllegalAccessException e) {
throw new MojoFailureException("IllegalAccessException: " +
e.getMessage());
} catch (InvocationTargetException e) {
Throwable cause = e.getCause();
if (cause instanceof NegativeArraySizeException) {
throw new MojoFailureException("NegativeArraySizeException: " +
cause.getMessage());
}
throw new MojoFailureException("InvocationTargetException: " +
e.getMessage());
}}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)