Class: Acme::Client::HTTPClient::ErrorMiddleware
- Inherits:
-
Faraday::Middleware
- Object
- Faraday::Middleware
- Acme::Client::HTTPClient::ErrorMiddleware
- Defined in:
- lib/acme/client/http_client.rb
Overview
ErrorMiddleware ensures the HTTP Client would not raise exceptions outside the Acme namespace.
Exceptions are rescued and re-packaged as Acme exceptions.
Instance Method Summary collapse
-
#call(env) ⇒ Object
Implements the Rack-alike Faraday::Middleware interface.