Exception: Nervion::HttpError

Inherits:
Exception
  • Object
show all
Defined in:
lib/nervion/stream_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



58
59
60
# File 'lib/nervion/stream_parser.rb', line 58

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



58
59
60
# File 'lib/nervion/stream_parser.rb', line 58

def status
  @status
end