Exception: RightApiHelper::MultipleMatchesFound
- Inherits:
-
RightScaleError
- Object
- StandardError
- RightScaleError
- RightApiHelper::MultipleMatchesFound
- Defined in:
- lib/right_api_helper/exception.rb
Instance Method Summary collapse
-
#initialize(resource, key, value) ⇒ MultipleMatchesFound
constructor
A new instance of MultipleMatchesFound.
Constructor Details
#initialize(resource, key, value) ⇒ MultipleMatchesFound
Returns a new instance of MultipleMatchesFound.
23 24 25 26 27 28 |
# File 'lib/right_api_helper/exception.rb', line 23 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 |