vendor/bundle/ruby/2.7.0/gems/faraday-1.3.0/lib/faraday/adapter/em_http.rb
# Options is a module containing helpers to convert the Faraday env object
# into options hashes for EMHTTP method calls.
Options is a module containing helpers to convert the Faraday env object
into options hashes for EMHTTP method calls.
Options is a module containing helpers to convert the Faraday env object into options hashes for EMHTTP method calls .
def raise_error(msg)
        error_class = Faraday::ClientError
        if timeout_message?(msg)
          error_class = Faraday::TimeoutError
          msg = 'request timed out'
        elsif msg == Errno::ECONNREFUSED
          error_class = Faraday::ConnectionFailed
          msg = 'connection refused'
        elsif msg == 'connection closed by server'
          error_class = Faraday::ConnectionFailed
        end
        raise error_class, msg
      end
def raise_error ( msg ) error_class = Faraday :: ClientError if timeout_message? ( msg ) error_class = Faraday :: TimeoutError msg = 'request timed out' elsif msg == Errno :: ECONNREFUSED error_class = Faraday :: ConnectionFailed msg = 'connection refused' elsif msg == 'connection closed by server' error_class = Faraday :: ConnectionFailed end raise error_class , msg end
Options is a module containing helpers to convert the Faraday env object
into options hashes for EMHTTP method calls.
Options is a module containing helpers to convert the Faraday env object into options hashes for EMHTTP method calls .
msg
<not_specific>