Exception: Semaph::Client::RequestException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Semaph::Client::RequestException
- Defined in:
- lib/semaph/client.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, response) ⇒ RequestException
constructor
A new instance of RequestException.
Constructor Details
#initialize(url, response) ⇒ RequestException
Returns a new instance of RequestException.
10 11 12 13 14 |
# File 'lib/semaph/client.rb', line 10 def initialize(url, response) @url = url @response = response super("http response #{response.status} received for #{url}:\n#{response.body}") end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
8 9 10 |
# File 'lib/semaph/client.rb', line 8 def response @response end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
8 9 10 |
# File 'lib/semaph/client.rb', line 8 def url @url end |