Exception: Flipper::Notifications::Webhooks::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- Flipper::Notifications::Webhooks::ApiError
- Defined in:
- lib/flipper/notifications/webhooks/errors.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(response) ⇒ ApiError
constructor
A new instance of ApiError.
- #message ⇒ Object
Constructor Details
#initialize(response) ⇒ ApiError
Returns a new instance of ApiError.
8 9 10 |
# File 'lib/flipper/notifications/webhooks/errors.rb', line 8 def initialize(response) @response = response end |
Instance Method Details
#message ⇒ Object
12 13 14 |
# File 'lib/flipper/notifications/webhooks/errors.rb', line 12 def "Webhook API call resulted in #{@response.code} response: #{@response.body}" end |