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