1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.project;
20
21 import java.io.File;
22
23
24
25
26
27 public class DuplicateProjectException extends Exception {
28 private final String projectId;
29
30 private final File existingProjectFile;
31
32 private final File conflictingProjectFile;
33
34
35
36
37 @Deprecated
38 public DuplicateProjectException(String message) {
39 this(null, null, null, message);
40 }
41
42
43
44
45 @Deprecated
46 public DuplicateProjectException(String message, Exception e) {
47 super(message, e);
48 this.projectId = null;
49 this.existingProjectFile = null;
50 this.conflictingProjectFile = null;
51 }
52
53 public DuplicateProjectException(
54 String projectId, File existingProjectFile, File conflictingProjectFile, String message) {
55 super(message);
56 this.projectId = projectId;
57 this.existingProjectFile = existingProjectFile;
58 this.conflictingProjectFile = conflictingProjectFile;
59 }
60
61 public String getProjectId() {
62 return projectId;
63 }
64
65 public File getExistingProjectFile() {
66 return existingProjectFile;
67 }
68
69 public File getConflictingProjectFile() {
70 return conflictingProjectFile;
71 }
72 }