1 | |
package org.apache.maven.project; |
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | |
|
22 | |
import org.apache.maven.project.validation.ModelValidationResult; |
23 | |
|
24 | |
public class InvalidProjectModelException |
25 | |
extends ProjectBuildingException |
26 | |
{ |
27 | |
private final String pomLocation; |
28 | |
|
29 | |
private ModelValidationResult validationResult; |
30 | |
|
31 | |
public InvalidProjectModelException( String projectId, String pomLocation, String message, Throwable cause ) |
32 | |
{ |
33 | 0 | super( projectId, message, cause ); |
34 | 0 | this.pomLocation = pomLocation; |
35 | 0 | } |
36 | |
|
37 | |
public InvalidProjectModelException( String projectId, String pomLocation, String message, |
38 | |
ModelValidationResult validationResult ) |
39 | |
{ |
40 | 0 | super( projectId, message ); |
41 | |
|
42 | 0 | this.pomLocation = pomLocation; |
43 | 0 | this.validationResult = validationResult; |
44 | 0 | } |
45 | |
|
46 | |
public InvalidProjectModelException( String projectId, String pomLocation, String message ) |
47 | |
{ |
48 | 0 | super( projectId, message ); |
49 | |
|
50 | 0 | this.pomLocation = pomLocation; |
51 | 0 | } |
52 | |
|
53 | |
public final String getPomLocation() |
54 | |
{ |
55 | 0 | return pomLocation; |
56 | |
} |
57 | |
|
58 | |
public final ModelValidationResult getValidationResult() |
59 | |
{ |
60 | 0 | return validationResult; |
61 | |
} |
62 | |
|
63 | |
public String getMessage() |
64 | |
{ |
65 | 0 | return super.getMessage() + " at " + this.pomLocation; |
66 | |
} |
67 | |
|
68 | |
} |