Exception: CheckerJobs::UnsupportedConfigurationOption

Inherits:
Error
  • Object
show all
Defined in:
lib/checker_jobs/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(option_name, value) ⇒ UnsupportedConfigurationOption

Returns a new instance of UnsupportedConfigurationOption.



18
19
20
21
22
# File 'lib/checker_jobs/errors.rb', line 18

def initialize(option_name, value)
  @option_name = option_name
  @value = value
  super()
end

Instance Method Details

#messageObject



24
25
26
27
# File 'lib/checker_jobs/errors.rb', line 24

def message
  "CheckerJobs: unsupported configuration option: '#{@value.inspect}' " \
  "isn't valid for '#{@option_name}' option."
end