1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.plugin.eclipse;
20
21 import org.apache.maven.shared.invoker.InvocationResult;
22 import org.apache.maven.shared.invoker.MavenInvocationException;
23
24 public class ExecutionFailedException
25 extends Exception
26 {
27
28 private static final long serialVersionUID = 1L;
29
30 private InvocationResult result;
31
32 public ExecutionFailedException( String message, MavenInvocationException cause )
33 {
34 super( message + " (Maven invoker threw an exception.)", cause );
35 }
36
37 public ExecutionFailedException( String message, InvocationResult result )
38 {
39 super( message + " (Resulting exit code: " + result.getExitCode() + ")" );
40
41 this.result = result;
42 }
43
44 public InvocationResult getInvocationResult()
45 {
46 return result;
47 }
48
49 }