1 8 14 package jfun.yan; 15 16 import jfun.util.Misc; 17 18 26 public class InvalidPropertyException extends YanException { 27 private final Class type; 28 private final String name; 29 30 36 public InvalidPropertyException(Class type, String name, String msg) { 37 super(msg); 38 this.type = type; 39 this.name = name; 40 } 41 42 43 48 public InvalidPropertyException(Class type, String name) { 49 super("invalid property: " + name + " in type " 50 +Misc.getTypeName(type)); 51 this.type = type; 52 this.name = name; 53 } 54 55 59 public Class getComponentType() { 60 return type; 61 } 62 66 public String getPropertyName() { 67 return name; 68 } 69 } 70 | Popular Tags |