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 node with a path that already exists
10   * 
11   * @author Nuno Bravo
12   * @created Out 20, 2010
13   */
14  public class NodeWithDuplicatePathException extends ContentManagerException {
15  
16      /**  */
17      private static final long serialVersionUID = 1L;
18  
19      /**
20       */
21      public NodeWithDuplicatePathException()
22      {
23          super("Node path already exists");
24      }
25  
26      /**
27       * @param exception
28       */
29      public NodeWithDuplicatePathException(Exception exception)
30      {
31          super(exception);
32      }
33  
34      /**
35       * @param nodeId
36       */
37      public NodeWithDuplicatePathException(Long nodeId)
38      {
39          super("Node with duplicate path with id: " + nodeId);
40      }
41  
42      /**
43       * @param reason
44       */
45      public NodeWithDuplicatePathException(String reason)
46      {
47          super(reason);
48      }
49  }