Exception: HttpStreamingClient::HttpError
- Inherits:
-
StandardError
- Object
- StandardError
- HttpStreamingClient::HttpError
- Defined in:
- lib/http_streaming_client/errors.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, message, headers = nil, response = nil) ⇒ HttpError
constructor
A new instance of HttpError.
Constructor Details
#initialize(status, message, headers = nil, response = nil) ⇒ HttpError
Returns a new instance of HttpError.
46 47 48 49 50 51 52 |
# File 'lib/http_streaming_client/errors.rb', line 46 def initialize(status, , headers = nil, response = nil) super "#{status}:#{}:#{headers}:#{response}" @status = status @message = @headers = headers @response = response end |
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
44 45 46 |
# File 'lib/http_streaming_client/errors.rb', line 44 def headers @headers end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
44 45 46 |
# File 'lib/http_streaming_client/errors.rb', line 44 def @message end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
44 45 46 |
# File 'lib/http_streaming_client/errors.rb', line 44 def response @response end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
44 45 46 |
# File 'lib/http_streaming_client/errors.rb', line 44 def status @status end |