Throw out an error if inte_func is invalid.