Exception: Yajl::HttpStream::HttpError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/yajl/http_stream.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, headers) ⇒ HttpError

Returns a new instance of HttpError.



20
21
22
23
# File 'lib/yajl/http_stream.rb', line 20

def initialize(message, headers)
  @message = message
  @headers = headers
end

Instance Attribute Details

#headersObject (readonly)

Returns the value of attribute headers.



18
19
20
# File 'lib/yajl/http_stream.rb', line 18

def headers
  @headers
end

#messageObject (readonly)

Returns the value of attribute message.



18
19
20
# File 'lib/yajl/http_stream.rb', line 18

def message
  @message
end