Exception: Bugsage::HttpResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- Bugsage::HttpResponseError
- Defined in:
- lib/bugsage/http_response_error.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#response_body ⇒ Object
readonly
Returns the value of attribute response_body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status:, message:, response_body: nil, location: nil) ⇒ HttpResponseError
constructor
A new instance of HttpResponseError.
Constructor Details
#initialize(status:, message:, response_body: nil, location: nil) ⇒ HttpResponseError
Returns a new instance of HttpResponseError.
7 8 9 10 11 12 |
# File 'lib/bugsage/http_response_error.rb', line 7 def initialize(status:, message:, response_body: nil, location: nil) @status = status @response_body = response_body @location = location super() end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
5 6 7 |
# File 'lib/bugsage/http_response_error.rb', line 5 def location @location end |
#response_body ⇒ Object (readonly)
Returns the value of attribute response_body.
5 6 7 |
# File 'lib/bugsage/http_response_error.rb', line 5 def response_body @response_body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/bugsage/http_response_error.rb', line 5 def status @status end |