Exception: RackReverseProxy::Errors::GenericURI
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- RackReverseProxy::Errors::GenericURI
- Defined in:
- lib/rack_reverse_proxy/errors.rb
Overview
GenericURI indicates that url is too generic
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
Instance Attribute Details
#url ⇒ Object (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_s ⇒ Object
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 |