1 56 57 package org.jdom; 58 59 66 public class IllegalDataException extends IllegalArgumentException { 67 68 private static final String CVS_ID = 69 "@(#) $RCSfile: IllegalDataException.java,v $ $Revision: 1.13 $ $Date: 2004/02/06 09:28:30 $ $Name: $"; 70 71 80 IllegalDataException(String data, String construct, String reason) { 81 super(new StringBuffer () 82 .append("The data \"") 83 .append(data) 84 .append("\" is not legal for a JDOM ") 85 .append(construct) 86 .append(": ") 87 .append(reason) 88 .append(".") 89 .toString()); 90 } 91 92 100 IllegalDataException(String data, String construct) { 101 super(new StringBuffer () 102 .append("The data \"") 103 .append(data) 104 .append("\" is not legal for a JDOM ") 105 .append(construct) 106 .append(".") 107 .toString()); 108 } 109 110 115 public IllegalDataException(String reason) { 116 super(reason); 117 } 118 } 119 | Popular Tags |