PR: MNG-602

allow passing a Throwable to the mojo execution exception

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@219850 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-07-20 07:23:06 +00:00
parent b2d349adbc
commit e1c8ffb251
1 changed files with 13 additions and 0 deletions

View File

@ -35,11 +35,19 @@ public class MojoExecutionException extends Exception
this.longMessage = longMessage;
}
/**
* @deprecated
*/
public MojoExecutionException( String message, Exception cause )
{
super( message, cause );
}
public MojoExecutionException( String message, Throwable cause )
{
super( message, cause );
}
public MojoExecutionException( String message )
{
super( message );
@ -49,4 +57,9 @@ public class MojoExecutionException extends Exception
{
return longMessage;
}
public Object getSource()
{
return source;
}
}