Exception: Minato::Utils::NetworkException

Inherits:
SerializableError show all
Defined in:
lib/minato/utils/exception.rb

Instance Attribute Summary

Attributes inherited from SerializableError

#body, #code, #id

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ NetworkException

Returns a new instance of NetworkException.



21
22
23
24
# File 'lib/minato/utils/exception.rb', line 21

def initialize(response)
  super(response)
  @body = Minato::Utils::Helpers.parse_json(response.body)
end