class Faraday::Response::OSErrorDetector

Public Instance Methods

on_complete(env) click to toggle source

TODO: Better handling, respecting official doc

# File lib/yao/faraday_middlewares.rb, line 173
def on_complete(env)
  return if env.success?

  raise Yao::ServerError.detect(env)
end