Exception: Rest::InternalClient::Redirect
- Defined in:
- lib/rest/wrappers/internal_client/internal/exceptions.rb
Overview
A redirect was encountered; caught by execute to retry with the new url.
Instance Attribute Summary collapse
-
#url ⇒ Object
Returns the value of attribute url.
Attributes inherited from Exception
Instance Method Summary collapse
-
#initialize(url) ⇒ Redirect
constructor
A new instance of Redirect.
- #message ⇒ Object
Methods inherited from Exception
#http_body, #http_code, #inspect, #to_s
Constructor Details
#initialize(url) ⇒ Redirect
Returns a new instance of Redirect.
165 166 167 |
# File 'lib/rest/wrappers/internal_client/internal/exceptions.rb', line 165 def initialize(url) @url = url end |
Instance Attribute Details
#url ⇒ Object
Returns the value of attribute url.
163 164 165 |
# File 'lib/rest/wrappers/internal_client/internal/exceptions.rb', line 163 def url @url end |
Instance Method Details
#message ⇒ Object
159 160 161 |
# File 'lib/rest/wrappers/internal_client/internal/exceptions.rb', line 159 def 'Redirect' end |