Exception: Tr3llo::RemoteServer::RequestError
- Inherits:
-
StandardError
- Object
- StandardError
- Tr3llo::RemoteServer::RequestError
- Defined in:
- lib/3llo/remote_server.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ RequestError
constructor
A new instance of RequestError.
- #message ⇒ Object
Constructor Details
#initialize(response) ⇒ RequestError
Returns a new instance of RequestError.
12 13 14 15 |
# File 'lib/3llo/remote_server.rb', line 12 def initialize(response) @response = response super() end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
10 11 12 |
# File 'lib/3llo/remote_server.rb', line 10 def response @response end |
Instance Method Details
#message ⇒ Object
17 18 19 20 21 |
# File 'lib/3llo/remote_server.rb', line 17 def formatted_response = "status: " + response.code.inspect() + ", body: " + response.body.inspect() "Received unexpected response from remote server: " + formatted_response end |