Exception: Flipper::Notifications::Webhooks::NetworkError

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

Instance Method Summary collapse

Constructor Details

#initialize(cause) ⇒ NetworkError

Returns a new instance of NetworkError.



24
25
26
# File 'lib/flipper/notifications/webhooks/errors.rb', line 24

def initialize(cause)
  @cause = cause
end

Instance Method Details

#messageObject



28
29
30
# File 'lib/flipper/notifications/webhooks/errors.rb', line 28

def message
  "Webhook API call network error: #{cause.class.name} - #{cause.message}"
end