Shovel.Vm.Vm.ArityError C# (CSharp) Method

ArityError() static private method

static private ArityError ( Vm vm, int expectedArity, int actualArity, bool inApply ) : void
vm Vm
expectedArity int
actualArity int
inApply bool
return void
        static void ArityError(Vm vm, int expectedArity, int actualArity, bool inApply)
        {
            var message = "Function of {0} arguments called with {1} arguments.";
            if (inApply)
            {
                message = "The first argument of 'apply', a function of {0} arguments, was called with {1} arguments.";
            }
            vm.RaiseShovelError (String.Format (
                message,
                expectedArity, actualArity));
        }
Vm