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.


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

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

Instance Attribute Details

#headersObject (readonly)

Returns the value of attribute headers


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

def headers
  @headers
end

#messageObject (readonly)

Returns the value of attribute message


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

def message
  @message
end