throw exception if unspecified parameter is given