Exception: JSONAPI::Exceptions::QueryParamsExceptions::InvalidQueryParameter

Inherits:
StandardError
  • Object
show all
Defined in:
lib/easy/jsonapi/exceptions/query_params_exceptions.rb

Overview

A more specific Standard Error to raise

Instance Attribute Summary collapse

Instance Method Summary collapse

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_codeObject

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