Exception: RestClient::Redirect

Inherits:
Exception
  • Object
show all
Defined in:
lib/restclient/exceptions.rb

Overview

A redirect was encountered; caught by execute to retry with the new url.

Instance Attribute Summary collapse

Attributes inherited from Exception

#response

Instance Method Summary collapse

Methods inherited from Exception

#http_body, #http_code, #inspect, #to_s

Constructor Details

#initialize(url) ⇒ Redirect

Returns a new instance of Redirect.



164
165
166
# File 'lib/restclient/exceptions.rb', line 164

def initialize(url)
  @url = url
end

Instance Attribute Details

#urlObject

Returns the value of attribute url.



162
163
164
# File 'lib/restclient/exceptions.rb', line 162

def url
  @url
end

Instance Method Details

#messageObject



158
159
160
# File 'lib/restclient/exceptions.rb', line 158

def message
  'Redirect'
end