Class: Bigcommerce::Middleware::HttpException

Inherits:
Faraday::Response::Middleware
  • Object
show all
Includes:
HttpErrors
Defined in:
lib/bigcommerce/middleware/http_exception.rb

Constant Summary

Constants included from HttpErrors

HttpErrors::ERRORS

Instance Method Summary collapse

Methods included from HttpErrors

#throw_http_exception!

Instance Method Details

#on_complete(env) ⇒ Object


8
9
10
11
# File 'lib/bigcommerce/middleware/http_exception.rb', line 8

def on_complete(env)
  throw_http_exception! env[:status].to_i, env
  env
end