Exception: Hookly::ResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- Hookly::ResponseError
- Defined in:
- lib/errors/response_error.rb
Instance Method Summary collapse
-
#initialize(response) ⇒ ResponseError
constructor
A new instance of ResponseError.
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 |