Exception: Philiprehberger::ConfigKit::MissingKeyError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, sources_checked) ⇒ MissingKeyError

Returns a new instance of MissingKeyError.



10
11
12
13
14
# File 'lib/philiprehberger/config_kit/errors.rb', line 10

def initialize(key, sources_checked)
  @key = key
  @sources_checked = sources_checked
  super("Required config key '#{key}' is missing. Sources checked: #{sources_checked.join(', ')}")
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



8
9
10
# File 'lib/philiprehberger/config_kit/errors.rb', line 8

def key
  @key
end

#sources_checkedObject (readonly)

Returns the value of attribute sources_checked.



8
9
10
# File 'lib/philiprehberger/config_kit/errors.rb', line 8

def sources_checked
  @sources_checked
end