Exception: Nervion::HttpError
- Inherits:
-
Exception
- Object
- Exception
- Nervion::HttpError
- Defined in:
- lib/nervion/stream_parser.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, body) ⇒ HttpError
constructor
A new instance of HttpError.
Constructor Details
#initialize(status, body) ⇒ HttpError
Returns a new instance of HttpError.
60 61 62 |
# File 'lib/nervion/stream_parser.rb', line 60 def initialize(status, body) @status, @body = status, body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
58 59 60 |
# File 'lib/nervion/stream_parser.rb', line 58 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
58 59 60 |
# File 'lib/nervion/stream_parser.rb', line 58 def status @status end |