Exception: Flipper::Notifications::Webhooks::ApiError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/flipper/notifications/webhooks/errors.rb

Direct Known Subclasses

ClientError, NetworkError, ServerError

Instance Method Summary collapse

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

#messageObject



12
13
14
# File 'lib/flipper/notifications/webhooks/errors.rb', line 12

def message
  "Webhook API call resulted in #{@response.code} response: #{@response.body}"
end