1 17 18 package org.sape.carbon.core.config.node; 19 20 21 29 public class NodeCreationException extends NodeException { 30 31 40 public NodeCreationException( 41 Class sourceClass, 42 Node parent, 43 String nodeName, 44 String message, Throwable previousException) { 45 46 super(sourceClass, 47 nodeName, 48 "The node in Folder [" + parent.getAbsoluteName() 49 + "] could not be created. Reason: " + message, 50 previousException); 51 } 52 53 61 public NodeCreationException( 62 Class sourceClass, 63 Node parent, 64 String nodeName, 65 String message) { 66 67 super(sourceClass, 68 nodeName, 69 "The node named in Folder [" 70 + (parent == null ? "" : parent.getAbsoluteName()) 71 + "] could not be created. Reason: " 72 + message); 73 } 74 75 } 76 | Popular Tags |