Raise error including expected arguments when function not called.