Exception: RESTFramework::Errors::InvalidBulkParametersError

Inherits:
BaseError
  • Object
show all
Defined in:
lib/rest_framework/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(detail = nil) ⇒ InvalidBulkParametersError

Returns a new instance of InvalidBulkParametersError.



18
19
20
# File 'lib/rest_framework/errors.rb', line 18

def initialize(detail = nil)
  @detail = detail
end

Instance Method Details

#messageObject



22
23
24
25
26
# File 'lib/rest_framework/errors.rb', line 22

def message
  msg = "Invalid request parameters for bulk action."
  msg += " #{@detail}" if @detail
  msg
end