Exception: Pipekit::UnsuccessfulRequestError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/pipekit/result.rb

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ UnsuccessfulRequestError

Returns a new instance of UnsuccessfulRequestError.



74
75
76
# File 'lib/pipekit/result.rb', line 74

def initialize(response)
  @response = response
end

Instance Method Details

#messageObject



78
79
80
# File 'lib/pipekit/result.rb', line 78

def message
  "Request not successful: #{@response}"
end