Exception: JSONAPI::Exceptions::QueryParamsExceptions::InvalidQueryParameter
- Inherits:
-
StandardError
- Object
- StandardError
- JSONAPI::Exceptions::QueryParamsExceptions::InvalidQueryParameter
- Defined in:
- lib/easy/jsonapi/exceptions/query_params_exceptions.rb
Overview
A more specific Standard Error to raise
Instance Attribute Summary collapse
-
#status_code ⇒ Object
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(status_code) ⇒ InvalidQueryParameter
constructor
Init w a status code, so that it can be accessed when rescuing an exception.
Constructor Details
#initialize(status_code) ⇒ InvalidQueryParameter
Init w a status code, so that it can be accessed when rescuing an exception
17 18 19 20 |
# File 'lib/easy/jsonapi/exceptions/query_params_exceptions.rb', line 17 def initialize(status_code) @status_code = status_code super end |
Instance Attribute Details
#status_code ⇒ Object
Returns the value of attribute status_code.
14 15 16 |
# File 'lib/easy/jsonapi/exceptions/query_params_exceptions.rb', line 14 def status_code @status_code end |