KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > maven > project > InvalidProjectModelException


1 package org.apache.maven.project;
2
3 /*
4  * Copyright 2001-2005 The Apache Software Foundation.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18
19 import org.apache.maven.project.validation.ModelValidationResult;
20
21 public class InvalidProjectModelException
22     extends ProjectBuildingException
23 {
24     private final String JavaDoc pomLocation;
25
26     private ModelValidationResult validationResult;
27
28     public InvalidProjectModelException( String JavaDoc projectId, String JavaDoc pomLocation, String JavaDoc message, Throwable JavaDoc cause )
29     {
30         super( projectId, message, cause );
31         this.pomLocation = pomLocation;
32     }
33
34     public InvalidProjectModelException( String JavaDoc projectId, String JavaDoc pomLocation, String JavaDoc message,
35                                          ModelValidationResult validationResult )
36     {
37         super( projectId, message );
38
39         this.pomLocation = pomLocation;
40         this.validationResult = validationResult;
41     }
42
43     public InvalidProjectModelException( String JavaDoc projectId, String JavaDoc pomLocation, String JavaDoc message )
44     {
45         super( projectId, message );
46
47         this.pomLocation = pomLocation;
48     }
49
50     public final String JavaDoc getPomLocation()
51     {
52         return pomLocation;
53     }
54
55     public final ModelValidationResult getValidationResult()
56     {
57         return validationResult;
58     }
59
60 }
61
Popular Tags