Exception: Sinja::SideloadError

Inherits:
HttpError show all
Defined in:
lib/sinja/errors.rb

Instance Attribute Summary collapse

Attributes inherited from HttpError

#http_status

Instance Method Summary collapse

Constructor Details

#initialize(http_status, json) ⇒ SideloadError

Returns a new instance of SideloadError.



23
24
25
26
# File 'lib/sinja/errors.rb', line 23

def initialize(http_status, json)
  @error_hashes = JSON.parse(json, :symbolize_names=>true).fetch(:errors)
  super(http_status)
end

Instance Attribute Details

#error_hashesObject (readonly)

Returns the value of attribute error_hashes.



21
22
23
# File 'lib/sinja/errors.rb', line 21

def error_hashes
  @error_hashes
end