Class: Slack::Web::Faraday::Response::WrapError

Inherits:
Faraday::Response::RaiseError
  • Object
show all
Defined in:
lib/slack/web/faraday/response/wrap_error.rb

Instance Method Summary collapse

Instance Method Details

#on_complete(env) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/slack/web/faraday/response/wrap_error.rb', line 7

def on_complete(env)
  super
rescue Slack::Web::Api::Errors::SlackError
  raise
rescue ::Faraday::ServerError
  raise Slack::Web::Api::Errors::UnavailableError.new('unavailable_error', env.response)
end