Exception: UtilityClasses::Exceptions::TypeKeyNotFound
- Inherits:
-
StandardError
- Object
- StandardError
- UtilityClasses::Exceptions::TypeKeyNotFound
- 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
-
#type_key ⇒ Object
readonly
Returns the value of attribute type_key.
Instance Method Summary collapse
-
#initialize(type_key:) ⇒ TypeKeyNotFound
constructor
A new instance of TypeKeyNotFound.
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_key ⇒ Object (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 |