1 8 14 package jfun.yan; 15 16 import jfun.util.Misc; 17 18 26 public class IrresolveableArgumentException extends UnsatisfiedComponentException { 27 private final int num; 28 private final Class type; 29 33 public int getOrdinalPosition() { 34 return num; 35 } 36 40 public Class getParameterType() { 41 return type; 42 } 43 49 public IrresolveableArgumentException(final Object ckey, final int num, 50 final Class type) { 51 super(ckey, "The #" + num + " argument of type " 52 +Misc.getTypeName(type) + " for component <" + ckey 53 + "> is not resolveable"); 54 this.num = num; 55 this.type = type; 56 } 57 } 58 | Popular Tags |