Exception: RightApiProvision::MultipleMatchesFound

Inherits:
RightScaleError
  • Object
show all
Defined in:
lib/right_api_provision/exception.rb

Instance Method Summary collapse

Constructor Details

#initialize(resource, key, value) ⇒ MultipleMatchesFound



24
25
26
27
28
29
# File 'lib/right_api_provision/exception.rb', line 24

def initialize(resource, key, value)
  key = key.to_s.delete("by_") # remove the 'by_' prefix
  msg = "More than one #{resource} with the #{key} of '#{value}'. " +
        "Please resolve via the RightScale dashboard and retry."
  super msg
end