1 56 57 package org.jdom; 58 59 67 public class IllegalNameException extends IllegalArgumentException { 68 69 private static final String CVS_ID = 70 "@(#) $RCSfile: IllegalNameException.java,v $ $Revision: 1.13 $ $Date: 2004/02/06 09:28:30 $ $Name: $"; 71 72 82 IllegalNameException(String name, String construct, String reason) { 83 super(new StringBuffer () 84 .append("The name \"") 85 .append(name) 86 .append("\" is not legal for JDOM/XML ") 87 .append(construct) 88 .append("s: ") 89 .append(reason) 90 .append(".") 91 .toString()); 92 } 93 94 103 IllegalNameException(String name, String construct) { 104 super(new StringBuffer () 105 .append("The name \"") 106 .append(name) 107 .append("\" is not legal for JDOM/XML ") 108 .append(construct) 109 .append("s.") 110 .toString()); 111 } 112 113 118 public IllegalNameException(String reason) { 119 super(reason); 120 } 121 } 122 | Popular Tags |