Exception: Bugsage::HttpResponseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/bugsage/http_response_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message)
end

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



5
6
7
# File 'lib/bugsage/http_response_error.rb', line 5

def location
  @location
end

#response_bodyObject (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

#statusObject (readonly)

Returns the value of attribute status.



5
6
7
# File 'lib/bugsage/http_response_error.rb', line 5

def status
  @status
end