Class: Zold::Http::Error
- Defined in:
- lib/zold/http.rb
Overview
The error, if connection fails
Instance Method Summary collapse
- #body ⇒ Object
- #headers ⇒ Object
-
#initialize(ex) ⇒ Error
constructor
A new instance of Error.
- #status ⇒ Object
- #status_line ⇒ Object
Methods inherited from Response
Constructor Details
#initialize(ex) ⇒ Error
Returns a new instance of Error.
118 119 120 |
# File 'lib/zold/http.rb', line 118 def initialize(ex) @ex = ex end |
Instance Method Details
#body ⇒ Object
122 123 124 |
# File 'lib/zold/http.rb', line 122 def body Backtrace.new(@ex).to_s end |
#headers ⇒ Object
134 135 136 |
# File 'lib/zold/http.rb', line 134 def headers {} end |
#status ⇒ Object
126 127 128 |
# File 'lib/zold/http.rb', line 126 def status 599 end |
#status_line ⇒ Object
130 131 132 |
# File 'lib/zold/http.rb', line 130 def status_line @ex. end |