Class: Zold::Http::Error
- Inherits:
-
Object
- Object
- Zold::Http::Error
- Defined in:
- lib/zold/http.rb
Overview
The error, if connection fails
Instance Method Summary collapse
- #body ⇒ Object
- #code ⇒ Object
-
#initialize(ex) ⇒ Error
constructor
A new instance of Error.
- #message ⇒ Object
Constructor Details
#initialize(ex) ⇒ Error
Returns a new instance of Error.
78 79 80 |
# File 'lib/zold/http.rb', line 78 def initialize(ex) @ex = ex end |
Instance Method Details
#body ⇒ Object
82 83 84 |
# File 'lib/zold/http.rb', line 82 def body @ex. + "\n" + @ex.backtrace.join("\n\t") end |
#code ⇒ Object
86 87 88 |
# File 'lib/zold/http.rb', line 86 def code '599' end |
#message ⇒ Object
90 91 92 |
# File 'lib/zold/http.rb', line 90 def @ex. end |