Exception: Hookly::ResponseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/errors/response_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ResponseError

Returns a new instance of ResponseError.



3
4
5
# File 'lib/errors/response_error.rb', line 3

def initialize(response)
  super "The request failed with code: `#{response.response_code}`"
end