class Akasha::Storage::HttpEventStore::ResponseHandler

Handles responses from Eventstore HTTP API.

Public Instance Methods

on_complete(env) click to toggle source
# File lib/akasha/storage/http_event_store/response_handler.rb, line 6
def on_complete(env)
  case env.status
  when (400..499)
    raise HttpClientError, env
  when (500..599)
    raise HttpServerError, env
  end
end