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.

Constant Summary

ErrorMessage =
"Redirect"

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from Exception

#message

Constructor Details

- (Redirect) initialize(url)



32
33
34
# File 'lib/restclient/exceptions.rb', line 32

def initialize(url)
	@url = url
end

Instance Attribute Details

- (Object) url

Returns the value of attribute url



31
32
33
# File 'lib/restclient/exceptions.rb', line 31

def url
  @url
end