public static Exception ParameterNumberExceeds(InjectionContext context, int neededParamNumber, int providedParamNumber) { var description = context.ObjectDescription; return(new ArgumentException( ExceptionFormatter.Format(context, Resources.ParameterNumberExceeds, description.ConcreteType.ToFullTypeName(), neededParamNumber, providedParamNumber))); }
public static Exception NonautowirableParameterNotSpecified(InjectionContext context, DependencyProvider dependencyProvider, int index) { var description = context.ObjectDescription; return(new ArgumentException( ExceptionFormatter.Format(context, Resources.NonautowirableParameterNotSpecified, index, description.ConcreteType.ToFullTypeName(), dependencyProvider.TargetType))); }