Exception: UtilityClasses::Exceptions::VariantKeyNotFound

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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_keyObject (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