Exception: RackReverseProxy::Errors::GenericURI

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/rack_reverse_proxy/errors.rb

Overview

GenericURI indicates that url is too generic

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#urlObject (readonly)

Returns the value of attribute url.



5
6
7
# File 'lib/rack_reverse_proxy/errors.rb', line 5

def url
  @url
end

Instance Method Details

#intialize(url) ⇒ Object



7
8
9
# File 'lib/rack_reverse_proxy/errors.rb', line 7

def intialize(url)
  @url = url
end

#to_sObject



11
12
13
# File 'lib/rack_reverse_proxy/errors.rb', line 11

def to_s
  %(Your URL "#{@url}" is too generic. Did you mean "http://#{@url}"?)
end