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 super( projectId, message, cause );
34 this.pomLocation = pomLocation;
35 }
36
37 public InvalidProjectModelException( String projectId, String pomLocation, String message,
38 ModelValidationResult validationResult )
39 {
40 super( projectId, message );
41
42 this.pomLocation = pomLocation;
43 this.validationResult = validationResult;
44 }
45
46 public InvalidProjectModelException( String projectId, String pomLocation, String message )
47 {
48 super( projectId, message );
49
50 this.pomLocation = pomLocation;
51 }
52
53 public final String getPomLocation()
54 {
55 return pomLocation;
56 }
57
58 public final ModelValidationResult getValidationResult()
59 {
60 return validationResult;
61 }
62
63 public String getMessage()
64 {
65 return super.getMessage() + " at " + this.pomLocation;
66 }
67
68 }