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.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, message, headers = nil) ⇒ HttpError
constructor
A new instance of HttpError.
Constructor Details
#initialize(status, message, headers = nil) ⇒ HttpError
Returns a new instance of HttpError.
40 41 42 43 44 45 |
# File 'lib/http_streaming_client/errors.rb', line 40 def initialize(status, , headers = nil) super "#{status}:#{}" @status = status @message = @headers = headers end |
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
38 39 40 |
# File 'lib/http_streaming_client/errors.rb', line 38 def headers @headers end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
38 39 40 |
# File 'lib/http_streaming_client/errors.rb', line 38 def @message end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
38 39 40 |
# File 'lib/http_streaming_client/errors.rb', line 38 def status @status end |