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
28 public class DuplicateProjectException extends Exception {
29 private final String projectId;
30
31 private final File existingProjectFile;
32
33 private final File conflictingProjectFile;
34
35
36
37
38 @Deprecated
39 public DuplicateProjectException(String message) {
40 this(null, null, null, message);
41 }
42
43
44
45
46 @Deprecated
47 public DuplicateProjectException(String message, Exception e) {
48 super(message, e);
49 this.projectId = null;
50 this.existingProjectFile = null;
51 this.conflictingProjectFile = null;
52 }
53
54 public DuplicateProjectException(
55 String projectId, File existingProjectFile, File conflictingProjectFile, String message) {
56 super(message);
57 this.projectId = projectId;
58 this.existingProjectFile = existingProjectFile;
59 this.conflictingProjectFile = conflictingProjectFile;
60 }
61
62 public String getProjectId() {
63 return projectId;
64 }
65
66 public File getExistingProjectFile() {
67 return existingProjectFile;
68 }
69
70 public File getConflictingProjectFile() {
71 return conflictingProjectFile;
72 }
73 }