View Javadoc

1   /**
2    * 2008, Digitalis Informatica. All rights reserved. Distribuicao e Gestao de Informatica, Lda. Estrada de Paco de Arcos
3    * num.9 - Piso -1 2780-666 Paco de Arcos Telefone: (351) 21 4408990 Fax: (351) 21 4408999 http://www.digitalis.pt
4    */
5   
6   package pt.digitalis.dif.utils.extensions.cms.exception;
7   
8   /**
9    * This exception occurs when a user tries to insert a content item in a node that already has a content item with the
10   * same name
11   * 
12   * @author Nuno Bravo
13   * @created Out 20, 2010
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       * @param exception
29       */
30      public ContentItemWithDuplicateNameAndParentNodeException(Exception exception)
31      {
32          super(exception);
33      }
34  
35      /**
36       * @param contentId
37       */
38      public ContentItemWithDuplicateNameAndParentNodeException(Long contentId)
39      {
40          super("Content with duplicate name and parent node. Content with id: " + contentId);
41      }
42  
43      /**
44       * @param reason
45       */
46      public ContentItemWithDuplicateNameAndParentNodeException(String reason)
47      {
48          super(reason);
49      }
50  
51  }