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.



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

def initialize(response)
  @response = response
end

Instance Method Details

#messageObject



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

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