Exception: CronTable::Schedule::DuplicateKeyError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- CronTable::Schedule::DuplicateKeyError
- Defined in:
- lib/cron-table/schedule.rb
Instance Method Summary collapse
-
#initialize(key) ⇒ DuplicateKeyError
constructor
A new instance of DuplicateKeyError.
- #message ⇒ Object
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
#message ⇒ Object
10 |
# File 'lib/cron-table/schedule.rb', line 10 def = "There can be only one crontable entry with key `#{@key}`. Use `crontable(key: '<other unique name>')` to select a different key" |