Exception: Grape::Exceptions::TooDeepParameters

Inherits:
Base
  • Object
show all
Defined in:
lib/grape/exceptions/too_deep_parameters.rb

Constant Summary

Constants inherited from Base

Base::BASE_ATTRIBUTES_KEY, Base::BASE_MESSAGES_KEY, Base::FALLBACK_LOCALE

Instance Attribute Summary

Attributes inherited from Base

#headers, #status

Instance Method Summary collapse

Methods inherited from Base

#[]

Constructor Details

#initialize(limit) ⇒ TooDeepParameters

Returns a new instance of TooDeepParameters.



6
7
8
# File 'lib/grape/exceptions/too_deep_parameters.rb', line 6

def initialize(limit)
  super(message: compose_message(:too_deep_parameters, limit: limit), status: 400)
end