Exception: Philiprehberger::ConfigKit::MissingKeyError
- Defined in:
- lib/philiprehberger/config_kit/errors.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#sources_checked ⇒ Object
readonly
Returns the value of attribute sources_checked.
Instance Method Summary collapse
-
#initialize(key, sources_checked) ⇒ MissingKeyError
constructor
A new instance of MissingKeyError.
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
#key ⇒ Object (readonly)
Returns the value of attribute key.
8 9 10 |
# File 'lib/philiprehberger/config_kit/errors.rb', line 8 def key @key end |
#sources_checked ⇒ Object (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 |