class Cortex::FaradayMiddleware::ResponseFailures
Public Instance Methods
call(env)
click to toggle source
# File lib/cortex/faraday_middleware/response_failures.rb, line 8 def call(env) begin @app.call(env) rescue Faraday::ConnectionFailed raise Cortex::Exceptions::ConnectionFailed.new(base_url: env[:url]) end end