1 8 14 package jfun.yan; 15 16 import jfun.util.Misc; 17 18 27 public class PropertyTypeMismatchException extends TypeMismatchException { 28 private final Class source; 29 private final Object ckey; 30 private final Object lkey; 31 32 40 public PropertyTypeMismatchException(final Object ckey, 41 final Class src, final Object lkey, 42 final Class param_type, final Class arg_type) { 43 super(param_type, arg_type, 44 "type mismatch for property " + lkey + " of component <" + ckey+"> for " 45 + Misc.getTypeName(src)+ " - " + 46 param_type.getName()+" expected, "+ 47 arg_type+" encountered."); 48 this.ckey = ckey; 49 this.source = src; 50 this.lkey = lkey; 51 } 52 53 57 public Object getComponentKey() { 58 return ckey; 59 } 60 64 public Object getPropertyKey() { 65 return lkey; 66 } 67 68 71 public Class getSource() { 72 return source; 73 } 74 75 } 76 | Popular Tags |