Class: TN::HTTP::WrapError

Inherits:
Faraday::Middleware
  • Object
show all
Defined in:
lib/tn/http.rb

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object



9
10
11
12
13
# File 'lib/tn/http.rb', line 9

def call(env)
  @app.call(env)
rescue Faraday::ClientError => e
  raise ClientError.new(e)
end