Exception: Sinja::SideloadError
- Inherits:
-
HttpError
- Object
- StandardError
- SinjaError
- HttpError
- Sinja::SideloadError
- Defined in:
- lib/sinja/errors.rb
Instance Attribute Summary collapse
-
#error_hashes ⇒ Object
readonly
Returns the value of attribute error_hashes.
Attributes inherited from HttpError
Instance Method Summary collapse
-
#initialize(http_status, json) ⇒ SideloadError
constructor
A new instance of SideloadError.
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_hashes ⇒ Object (readonly)
Returns the value of attribute error_hashes.
21 22 23 |
# File 'lib/sinja/errors.rb', line 21 def error_hashes @error_hashes end |