class RightApiHelper::MultipleMatchesFound

Public Class Methods

new(resource, key, value) click to toggle source
Calls superclass method
# 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