Exception: PackerFiles::Core::NilException
- Defined in:
- lib/PackerFiles/Core/Exceptions.rb
Overview
The Nil exception is generated when a particular class member is nil.
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(obj, member_name) ⇒ NilException
constructor
Constructor.
Constructor Details
#initialize(obj, member_name) ⇒ NilException
Constructor.
18 19 20 21 22 |
# File 'lib/PackerFiles/Core/Exceptions.rb', line 18 def initialize(obj, member_name) @super class_name = obj.class.name.gsub(/.*::/, '') self. = "#{class_name}.#{member_name} is not set" end |