class Johac::Connection::Middleware::RaiseError

Will raise some {Johac::Error::ResponseError} from an HTTP response using status codes.

Public Instance Methods

on_complete(env) click to toggle source
# File lib/johac/connection.rb, line 191
def on_complete(env)
  if e = ::Johac::Error::ResponseError.from_response(env.status, env.response_headers, env.body)
    raise e
  end
end