Exception: RackReverseProxy::Errors::AmbiguousMatch

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

Overview

AmbiguousMatch indicates that path matched more than one endpoint

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#matchesObject (readonly)

Returns the value of attribute matches.



18
19
20
# File 'lib/rack_reverse_proxy/errors.rb', line 18

def matches
  @matches
end

#pathObject (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_sObject



25
26
27
# File 'lib/rack_reverse_proxy/errors.rb', line 25

def to_s
  %(Path "#{path}" matched multiple endpoints: #{formatted_matches})
end