Sha256: dbef2577309feed6d82e94db666f138809218afbb10ca48b468d673f93369765

Contents?: true

Size: 468 Bytes

Versions: 1

Compression:

Stored size: 468 Bytes

Contents

# frozen_string_literal: true
module Slack
  module Web
    module Faraday
      module Response
        class WrapError < ::Faraday::Response::RaiseError
          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
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slack-ruby-client-0.16.0 lib/slack/web/faraday/response/wrap_error.rb