Method: Zaius::ZaiusError#initialize

Defined in:
lib/zaius/errors.rb

#initialize(message = nil, http_status: nil, http_body: nil, json_body: nil, http_headers: nil, code: nil) ⇒ ZaiusError



12
13
14
15
16
17
18
19
20
# File 'lib/zaius/errors.rb', line 12

def initialize(message = nil, http_status: nil, http_body: nil, json_body: nil,
               http_headers: nil, code: nil)
  @message = message
  @http_status = http_status
  @http_body = http_body
  @http_headers = http_headers || {}
  @json_body = json_body
  @code = code
end