1 4 5 9 10 package org.openlaszlo.compiler; 11 import java.io.File ; 12 import org.jdom.Element; 13 import org.jdom.JDOMException; 14 import org.xml.sax.SAXParseException ; 15 import org.openlaszlo.utils.ChainedException; 16 import org.openlaszlo.sc.parser.ParseException; 17 18 22 public class UnknownAttributeException extends RuntimeException { 23 24 private String elementName; 25 private String attrName; 26 27 public UnknownAttributeException (String elementName, String attrName) { 28 this.elementName = elementName; 29 this.attrName = attrName; 30 } 31 32 public UnknownAttributeException () { } 33 34 public String getElementName() { return elementName; } 35 public String getName() { return attrName; } 36 37 public void setElementName(String s) { elementName = s; } 38 public void setName(String s) { attrName = s; } 39 40 public String getMessage () { 41 return "Unknown attribute named "+attrName; 42 } 43 44 } 45 | Popular Tags |