Exception: ZombieBattleground::Api::Errors::InvalidResponse
- Inherits:
-
StandardError
- Object
- StandardError
- ZombieBattleground::Api::Errors::InvalidResponse
- Defined in:
- lib/zombie_battleground/api/errors.rb
Overview
Creates an error with the Faraday response and the context for the error
Instance Method Summary collapse
-
#initialize(response, context) ⇒ ZombieBattleground::Api::Errors::InvalidResponse
constructor
private
Creates an exception class with the Faraday response and error context.
Constructor Details
#initialize(response, context) ⇒ ZombieBattleground::Api::Errors::InvalidResponse
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Creates an exception class with the Faraday response and error context
44 45 46 47 48 |
# File 'lib/zombie_battleground/api/errors.rb', line 44 def initialize(response, context) @response = response @context = context super(context.errors..to_s) end |