The function below tests if a parameter value is passed. If not, it throws an exception.
Throwing exception...