Exception: Stove::BadResponse

Inherits:
Error
  • Object
show all
Defined in:
lib/stove/error.rb

Instance Method Summary collapse

Methods inherited from Error

set_exit_code

Constructor Details

#initialize(response) ⇒ BadResponse

Returns a new instance of BadResponse.



101
102
103
# File 'lib/stove/error.rb', line 101

def initialize(response)
  @response = response
end

Instance Method Details

#messageObject



105
106
107
108
# File 'lib/stove/error.rb', line 105

def message
  "The following errors occured when making the request:\n" <<
    @response.parsed_response
end