```ruby
nil_param = if event_name.nil? && event_id.nil?
  "both event_name & event_id"
elsif list_name.nil?
  "list_name"
elsif folder_name.nil?
  "folder_name"
end

if nil_param
  raise InvalidParams.new("Error:#{nil_param} cannot be nil")
end
```