Exception: UtilityClasses::Exceptions::VariantKeyNotFound
- Inherits:
-
StandardError
- Object
- StandardError
- UtilityClasses::Exceptions::VariantKeyNotFound
- Defined in:
- lib/utility_classes/exceptions/variant_key_not_found.rb
Overview
Exception thrown when variant key is not found in config.
Instance Attribute Summary collapse
-
#variant_key ⇒ Object
readonly
Returns the value of attribute variant_key.
Instance Method Summary collapse
-
#initialize(variant_key:) ⇒ VariantKeyNotFound
constructor
A new instance of VariantKeyNotFound.
Constructor Details
#initialize(variant_key:) ⇒ VariantKeyNotFound
Returns a new instance of VariantKeyNotFound.
10 11 12 13 |
# File 'lib/utility_classes/exceptions/variant_key_not_found.rb', line 10 def initialize(variant_key:) @variant_key = variant_key super("Variant key #{variant_key} not found in config") end |
Instance Attribute Details
#variant_key ⇒ Object (readonly)
Returns the value of attribute variant_key.
8 9 10 |
# File 'lib/utility_classes/exceptions/variant_key_not_found.rb', line 8 def variant_key @variant_key end |