Exception: JSONAPI::Exceptions::HeadersExceptions::InvalidHeader

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

Overview

A more specific standard error to raise when an exception is found

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status_code) ⇒ InvalidHeader

Init w a status code, so that it can be accessed when rescuing an exception



20
21
22
23
# File 'lib/easy/jsonapi/exceptions/headers_exceptions.rb', line 20

def initialize(status_code)
  @status_code = status_code
  super
end

Instance Attribute Details

#status_codeObject

Returns the value of attribute status_code.



17
18
19
# File 'lib/easy/jsonapi/exceptions/headers_exceptions.rb', line 17

def status_code
  @status_code
end