Exception: UtilityClasses::Exceptions::TypeKeyNotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/utility_classes/exceptions/type_key_not_found.rb

Overview

Exception thrown when type key is not found in config.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type_key:) ⇒ TypeKeyNotFound

Returns a new instance of TypeKeyNotFound.



10
11
12
13
# File 'lib/utility_classes/exceptions/type_key_not_found.rb', line 10

def initialize(type_key:)
  @type_key = type_key
  super("Type key #{type_key} not found in config")
end

Instance Attribute Details

#type_keyObject (readonly)

Returns the value of attribute type_key.



8
9
10
# File 'lib/utility_classes/exceptions/type_key_not_found.rb', line 8

def type_key
  @type_key
end