1 7 8 package org.dom4j; 9 10 18 public class IllegalAddException extends IllegalArgumentException { 19 public IllegalAddException(String reason) { 20 super(reason); 21 } 22 23 public IllegalAddException(Element parent, Node node, String reason) { 24 super("The node \"" + node.toString() 25 + "\" could not be added to the element \"" 26 + parent.getQualifiedName() + "\" because: " + reason); 27 } 28 29 public IllegalAddException(Branch parent, Node node, String reason) { 30 super("The node \"" + node.toString() 31 + "\" could not be added to the branch \"" + parent.getName() 32 + "\" because: " + reason); 33 } 34 } 35 36 72 | Popular Tags |