Class: Akasha::Storage::HttpEventStore::HttpError

Inherits:
Error
  • Object
show all
Defined in:
lib/akasha/storage/http_event_store.rb

Overview

Base class for HTTP errors.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status_code) ⇒ HttpError


17
18
19
20
# File 'lib/akasha/storage/http_event_store.rb', line 17

def initialize(status_code)
  @status_code = status_code
  super("Unexpected HTTP response: #{@status_code}")
end

Instance Attribute Details

#status_codeObject (readonly)

Returns the value of attribute status_code


15
16
17
# File 'lib/akasha/storage/http_event_store.rb', line 15

def status_code
  @status_code
end