1 8 14 package jfun.yan; 15 16 import jfun.yan.function.Signature; 17 18 27 public class ParameterTypeMismatchException extends TypeMismatchException { 28 private final Signature source; 29 private final Object ckey; 30 private final int num; 31 39 public ParameterTypeMismatchException(final Object ckey, 40 final Signature src, final int num, 41 final Class param_type, final Class arg_type) { 42 super(param_type, arg_type, 43 "type mismatch for The #" + num + " parameter of component <" + ckey+"> for " 44 + src 45 + " - " + param_type.getName()+" expected, " 46 + arg_type + " encountered."); 47 this.ckey = ckey; 48 this.source = src; 49 this.num = num; 50 } 51 52 56 public Object getComponentKey() { 57 return ckey; 58 } 59 63 public int getOrdinalPosition() { 64 return num; 65 } 66 67 70 public Signature getSource() { 71 return source; 72 } 73 74 } 75 | Popular Tags |