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



13
14
15
16
17
# File 'lib/tn/http.rb', line 13

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