Coverage Report - pt.digitalis.dif.utils.extensions.cms.exception.NodeWithNodesException
 
Classes in this File Line Coverage Branch Coverage Complexity
NodeWithNodesException
0%
0/9
N/A
1
 
 1  0
 /**
 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 delete a Node that has child Nodes. This only applies if the delete isn't
 10  
  * a cascade delete
 11  
  * 
 12  
  * @author Nuno Bravo
 13  
  * @created Out 20, 2010
 14  
  */
 15  
 public class NodeWithNodesException extends ContentManagerException {
 16  
 
 17  
     /**  */
 18  
     private static final long serialVersionUID = 1L;
 19  
 
 20  
     /**
 21  
      */
 22  
     public NodeWithNodesException()
 23  
     {
 24  0
         super("Node has child nodes");
 25  0
     }
 26  
 
 27  
     /**
 28  
      * @param exception
 29  
      */
 30  
     public NodeWithNodesException(Exception exception)
 31  
     {
 32  0
         super(exception);
 33  0
     }
 34  
 
 35  
     /**
 36  
      * @param nodeId
 37  
      */
 38  
     public NodeWithNodesException(Long nodeId)
 39  
     {
 40  0
         super("Node has child nodes. Id: " + nodeId);
 41  0
     }
 42  
 
 43  
     /**
 44  
      * @param reason
 45  
      */
 46  
     public NodeWithNodesException(String reason)
 47  
     {
 48  0
         super(reason);
 49  0
     }
 50  
 
 51  
 }