Exception: CronTable::Schedule::DuplicateKeyError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/cron-table/schedule.rb

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ DuplicateKeyError

Returns a new instance of DuplicateKeyError.



6
7
8
# File 'lib/cron-table/schedule.rb', line 6

def initialize(key)
  @key = key
end

Instance Method Details

#messageObject



10
# File 'lib/cron-table/schedule.rb', line 10

def message = "There can be only one crontable entry with key `#{@key}`. Use `crontable(key: '<other unique name>')` to select a different key"