mirror of https://github.com/apache/maven.git
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:
parent
b2d349adbc
commit
e1c8ffb251
|
@ -35,11 +35,19 @@ public class MojoExecutionException extends Exception
|
||||||
this.longMessage = longMessage;
|
this.longMessage = longMessage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated
|
||||||
|
*/
|
||||||
public MojoExecutionException( String message, Exception cause )
|
public MojoExecutionException( String message, Exception cause )
|
||||||
{
|
{
|
||||||
super( message, cause );
|
super( message, cause );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MojoExecutionException( String message, Throwable cause )
|
||||||
|
{
|
||||||
|
super( message, cause );
|
||||||
|
}
|
||||||
|
|
||||||
public MojoExecutionException( String message )
|
public MojoExecutionException( String message )
|
||||||
{
|
{
|
||||||
super( message );
|
super( message );
|
||||||
|
@ -49,4 +57,9 @@ public class MojoExecutionException extends Exception
|
||||||
{
|
{
|
||||||
return longMessage;
|
return longMessage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Object getSource()
|
||||||
|
{
|
||||||
|
return source;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue