Class: Akasha::Storage::HttpEventStore::HttpError
- Defined in:
- lib/akasha/storage/http_event_store.rb
Overview
Base class for HTTP errors.
Instance Attribute Summary collapse
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(status_code) ⇒ HttpError
constructor
A new instance of HttpError.
Constructor Details
#initialize(status_code) ⇒ HttpError
Returns a new instance of 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_code ⇒ Object (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 |