Exception: RackReverseProxy::Errors::AmbiguousMatch
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- RackReverseProxy::Errors::AmbiguousMatch
- Defined in:
- lib/rack_reverse_proxy/errors.rb
Overview
AmbiguousMatch indicates that path matched more than one endpoint
Instance Attribute Summary collapse
-
#matches ⇒ Object
readonly
Returns the value of attribute matches.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path, matches) ⇒ AmbiguousMatch
constructor
A new instance of AmbiguousMatch.
- #to_s ⇒ Object
Constructor Details
#initialize(path, matches) ⇒ AmbiguousMatch
Returns a new instance of AmbiguousMatch.
20 21 22 23 |
# File 'lib/rack_reverse_proxy/errors.rb', line 20 def initialize(path, matches) @path = path @matches = matches end |
Instance Attribute Details
#matches ⇒ Object (readonly)
Returns the value of attribute matches.
18 19 20 |
# File 'lib/rack_reverse_proxy/errors.rb', line 18 def matches @matches end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
18 19 20 |
# File 'lib/rack_reverse_proxy/errors.rb', line 18 def path @path end |
Instance Method Details
#to_s ⇒ Object
25 26 27 |
# File 'lib/rack_reverse_proxy/errors.rb', line 25 def to_s %(Path "#{path}" matched multiple endpoints: #{formatted_matches}) end |