Exception: Grape::Exceptions::EmptyMessageBody
- Defined in:
- lib/grape/exceptions/empty_message_body.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
Instance Method Summary collapse
-
#initialize(body_format) ⇒ EmptyMessageBody
constructor
A new instance of EmptyMessageBody.
Methods inherited from Base
Constructor Details
#initialize(body_format) ⇒ EmptyMessageBody
Returns a new instance of EmptyMessageBody.
6 7 8 |
# File 'lib/grape/exceptions/empty_message_body.rb', line 6 def initialize(body_format) super(message: (:empty_message_body, body_format: body_format), status: 400) end |