1
2
3
4
5
6 package pt.digitalis.dif.utils.extensions.cms.exception;
7
8
9
10
11
12
13
14
15 public class ContentItemWithDuplicateNameAndParentNodeException extends ContentManagerException {
16
17
18 private static final long serialVersionUID = 1L;
19
20
21
22 public ContentItemWithDuplicateNameAndParentNodeException()
23 {
24 super("Content with duplicate name and parent node");
25 }
26
27
28
29
30 public ContentItemWithDuplicateNameAndParentNodeException(Exception exception)
31 {
32 super(exception);
33 }
34
35
36
37
38 public ContentItemWithDuplicateNameAndParentNodeException(Long contentId)
39 {
40 super("Content with duplicate name and parent node. Content with id: " + contentId);
41 }
42
43
44
45
46 public ContentItemWithDuplicateNameAndParentNodeException(String reason)
47 {
48 super(reason);
49 }
50
51 }