Exception: Gratitude::TipUpdateError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/gratitude/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(usernames) ⇒ TipUpdateError

Returns a new instance of TipUpdateError.



21
22
23
24
25
26
# File 'lib/gratitude/error.rb', line 21

def initialize(usernames)
  combined_usernames = usernames.join(", ")
  super(
  "There was an error updating the tip(s) for the following user(s): "\
  "#{combined_usernames}.")
end