Exception: Minato::Utils::NetworkException
- Inherits:
-
SerializableError
- Object
- StandardError
- SerializableError
- Minato::Utils::NetworkException
- Defined in:
- lib/minato/utils/exception.rb
Direct Known Subclasses
BadGateway, BadRequest, Conflict, Forbidden, Gone, NotFound, ServerError, ServiceUnavailable, Unauthorized, UnprocessableEntity
Instance Attribute Summary
Attributes inherited from SerializableError
Instance Method Summary collapse
-
#initialize(response) ⇒ NetworkException
constructor
A new instance of NetworkException.
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 |